Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

task.MapReduceScriptTask

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

N/task Module
task.MapReduceScriptTask
Object Description: The properties of a map/reduce script deployment. You can use this object to programmatically submit a script deployment for processing. To use the MapReduceScriptTask object: In the NetSuite UI, create the script record and script deployment records. Use task.create(options) to create the MapReduceScriptTask object. Use the MapReduceScriptTask object properties to set the script and deployment properties. Use MapReduceScriptTask.submit() to submit the deployment for processing. Use the properties for the task.MapReduceScriptTaskStatus object to get the status of the map/reduce script. For a complete list of this object’s methods and properties, see MapReduceScriptTask Object Members. For general information about map/reduce scripts, see Map/Reduce Key Concepts.
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.MapReduceScriptTask

Example:

// Code Example 1
//Add additional code
//...
var mrTask = task.create({taskType: task.TaskType.MAP_REDUCE});
mrTask.scriptId = mapReduceScriptId;
mrTask.deploymentId = custdeploy1;
var mrTaskId = mrTask.submit();
//...
//Add additional code

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