Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

task.ScheduledScriptTaskStatus

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=task.ScheduledScriptTaskStatus for more information.

N/task Module
task.ScheduledScriptTaskStatus
Object Description: The properties and status of a scheduled script placed into the NetSuite scheduling queue. Use task.checkStatus(options) with the unique ID for the scheduled script task to get the ScheduledScriptTaskStatus Object. For a complete list of this object’s properties, see ScheduledScriptTaskStatus Object Members.
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/task Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=task.ScheduledScriptTaskStatus

Example:

// Code Example 1
//Add additional code
//...
var res = task.checkStatus(scriptTaskId);
log.debug('Initial status: ' + res.status);
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345798266.html