Modules
Objects/Functions
SuiteScript 2.0
{WorkflowTriggerTask}.submit(){FAILED_TO_SUBMIT_JOB_REQUEST_1: {Failed to submit job request: {reason}}})
N/task Module
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.0 Script Types.
Governance:
20 units
Module:
N/task Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=WorkflowTriggerTask.submit()
Example:
// Code Example 1
//Add additional code
//...
var workflowTriggerTask = workflowTask.submit();
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_459607788085.html