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
For general information about map/reduce scripts, see Map/Reduce Key Concepts. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2015.2 |
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 mrTask = task.create({
taskType: task.TaskType.MAP_REDUCE
});
mrTask.scriptId = mapReduceScriptId;
mrTask.deploymentId = custdeploy1;
var mrTaskId = mrTask.submit();
...
//Add additional code
For general information about map/reduce scripts, see SuiteScript 2.x Map/Reduce Script Type.