WorkflowTriggerTask.submit()
Method Description |
Directs NetSuite to place the asynchronous workflow initiation task into the NetSuite scheduling queue and returns a unique ID for the task. Use WorkflowTriggerTaskStatus.status to view the status of a submitted task. |
Returns |
string The task ID |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
20 units |
Module |
|
Since |
2015.2 |
Errors
Error Code |
Message |
Thrown If |
---|---|---|
|
Failed to submit job request: {reason} |
Task cannot be submitted. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.
//Add additional code
...
var workflowTriggerTask = workflowTask.submit();
...
//Add additional code