ScheduledScriptTask.submit()
Method Description |
Directs NetSuite to place a scheduled script deployment into the NetSuite scheduling queue and returns a unique ID for the task. Additionally, note the following:
|
Returns |
string The task ID as a string, except as noted above. |
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 scheduledScriptTaskId = scriptTask.submit();
...
//Add additional code