Defining a Map/Reduce Script Deployment in XML
As part of developing map/reduce scripts in SuiteCloud Development Framework (SDF), to execute the map/reduce script in the target account, you need to include script deployment values in your mapreducescript
SDF custom object. To learn about each deployment option, see Map/Reduce Script Deployment Record.
You can nest a scriptdeployments
structure within your mapreducescript
SDF custom object:
<mapreducescript scriptid="customscript_mr">
...
<scriptdeployments>
<scriptdeployment scriptid="customdeploy_123890">
<title>Audit Deploy</title>
<isdeployed>T</isdeployed>
<loglevel>AUDIT</loglevel>
<runasrole>ADMINSTRATOR</runasrole>
<status>NOTSCHEDULED</status>
<yieldaftermins>60</yieldaftermins>
</scriptdeployment>
</scriptdeployments>
...
</mapreducescript>
You can also import or download existing script deployments from a NetSuite account.
For more information, see Account Component Imports to SuiteCloud Projects and Downloading the XML Definition of an Object from a NetSuite Account.
The scriptdeployments
structure can hold multiple scriptdeployment
elements for defining script deployments.
<mapreducescript scriptid="customscript_mr">
...
<scriptdeployments>
<scriptdeployment scriptid="customdeploy_123">
<isdeployed>T</isdeployed>
<loglevel>AUDIT</loglevel>
<runasrole></runasrole>
<status>SCHEDULED</status>
<yieldaftermins>10</yieldaftermins>
</scriptdeployment>
<scriptdeployment scriptid="customdeploy_sdf_project_test">
<isdeployed>T</isdeployed>
<loglevel>DEBUG</loglevel>
<runasrole></runasrole>
<status>NOTSCHEDULED</status>
<yieldaftermins>60</yieldaftermins>
</scriptdeployment>
</scriptdeployments>
...
</mapreducescript>
Related Topics
- Map/Reduce Script Objects as XML Definitions
- Setting a Concurrency Limit on Your Map/Reduce Script Deployment in SDF
- Referencing a Script File in a mapreducescript SDF Custom Object
- Referencing a Custom Plug-in in a mapreducescript SDF Custom Object
- Referencing a Custom Script Field in a mapreducescript SDF Custom Object
- Example of a mapreducescript SDF Custom Object