NetSuite Data Targets - Map Reduce
Overview
This Map Reduce article describes how to set up the NetSuite SuiteScript components required for DataBlend to perform bulk record imports using NetSuite’s Map/Reduce framework. This approach is designed for high-volume data processing and provides asynchronous job execution with status tracking.
1. Log into NetSuite to create a new script from the Customization menu > Scripting > Scripts > New.

2. If you have not added the map-reduce and map-reduce-wrapper scripts before, hover your mouse over the SCRIPT FILE box to click the ‘+ Add’ button.

If you have uploaded the scripts before, compare the potentially outdated scripts in NetSuite versus the latest script version in NetSuite Data Targets by clicking on the double down arrows > click List and in the “Type & tab…” textbox, search for a key word, such as “map” or “status”. Click on a script and hover your mouse over the SCRIPT FILE box to click Open. Under “MEDIA ITEM” on the newly opened tab, click the preview link and optionally use a text file comparison tool. If the script is outdated, click add a new script file.

3. Download the DataBlend RESTlet scripts from the table in NetSuite Data Targets.
4. Enter a file name with the date for versioning control, select the script file downloaded and Save the record. Important! File name should have .js at the end of the name.

5. Select the created script and click Create Script Record.

6. Enter a name for the script and note the API version. Click on the down arrow next to Save to click the Save and Deploy button. Important! File name should have .js at the end of the name.

7. Set fields, then click the down arrow next to Save & New to click on Save.

8. Refer to the NetSuite Data Targets - Bulk Import page.