WorkflowTriggerTask.submit()

Note:

The content in this help topic pertains to SuiteScript 2.0.

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

N/task Module

Since

2015.2

Errors

Error Code

Message

Thrown If

FAILED_TO_SUBMIT_JOB_REQUEST_1

Failed to submit job request: {reason}

Task cannot be submitted.

Syntax
Important:

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 

        

Related Topics

task.WorkflowTriggerTask
N/task Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices