NSOA.NSConnector.integrateWorkflowGroup(name)
OpenAir NetSuite Connector lets you create workflow groups to include only the integration workflows you need in each scheduled integration run. For more information about workflow groups, see Creating and Managing Workflow Groups.
This function lets you trigger the integration to run for a specific workflow group from your user scripts.
This function:
-
Must be called from a scheduled script.
-
Cannot be called twice for the same workflow group in the same scheduled script.
-
Cannot be called if the
NSOA.NSConnector.integrateAllNow()
is called in the same scheduled script. See NSOA.NSConnector.integrateAllNow()
Parameters
-
name
(string) — The name of the workflow group. It must match exactly the name of an existing workflow group.
Returns
-
Boolean true if integration was triggered and false if integration was not triggered.
Units Limit
-
1000 units
For more information, see Scripting Governance.
Since
-
October 9, 2021
Example
-
This example triggers the NetSuite integration for the workflow group ’ Timesheets Custom Export‘ using a scheduled script.
function main() { NSOA.NSConnector.integrateWorkflowGroup('Timesheets Custom Export'); }
Note:This simple example does not show error checking, see Handling SOAP Errors.
See Code Samples for more examples.