Referencing a Script File in a mapreducescript SDF Custom Object

In SuiteCloud Development Framework (SDF), the mapreducescript SDF custom object is a definition of the script record and deployment record. In addition, your object needs a reference to the map/reduce script file to execute a script in your target account. Map/reduce script files need to be kept in the File Cabinet and saved as a JS file.

You must include the script in your project’s File Cabinet folder and reference it from the mapreducescript SDF custom object. The following example shows MapReduceScript.js referenced from the customscript_mr SDF custom object:

          <mapreducescript scriptid="customscript_mr">
    ...
    <scriptfile>[/SuiteScripts/MapReduceScript.js]</scriptfile>
    ...
</mapreducescript> 

        

For more information about SDF reference format rules, see Specifying a Custom File or Script Reference.

Related Topics

Map/Reduce Script Objects as XML Definitions
Defining a Map/Reduce Script Deployment in XML
Setting a Concurrency Limit on Your Map/Reduce Script Deployment in SDF
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

General Notices