Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

task.ScheduledScriptTask

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

N/task Module
task.ScheduledScriptTask
Object Description: All the properties of scheduled script task in SuiteScript. Use this object to place a scheduled script deployment into the NetSuite scheduling queue. To use the ScheduledScriptTask Object: In the NetSuite UI, create the script record and script deployment record. Use task.create(options) to create the ScheduledScriptTask object. Use the ScheduledScriptTask object properties to set the script and deployment properties. Use ScheduledScriptTask.submit() to deploy the scheduled script to the NetSuite scheduling queue. Use the properties for the task.ScheduledScriptTaskStatus object to get the status of the scheduled script. For a complete list of this object’s methods and properties, see ScheduledScriptTask Object Members. For more information about scheduled scripts in NetSuite, see SuiteScript 2.0 Scheduled Script Type.
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.ScheduledScriptTask

Example:

// Code Example 1
//Add additional code
//...
var scriptTask = task.create({taskType: task.TaskType.SCHEDULED_SCRIPT});
scriptTask.scriptId = 1234;
scriptTask.deploymentId = 'customdeploy1';
scriptTask.params = {searchId: 'custsearch_456'};
var scriptTaskId = scriptTask.submit();
//...
//Add additional code

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