NetSuite Data Targets
Overview
DataBlend Supports the following data targets for creating and modifying records in NetSuite.
-
External Payments
-
Manage Financials
-
Manage inventory
-
Resource Planning
To "export" the script, click to open one. Ctrl + A to select the text or manually highlight it to copy and paste into, for example, Notepad. Also copy the JavaScript File name listed in the table including the "_(MM.DD.YY)" for versioning control and ".js" for file type. In Notepad, click on File > Save As, and paste the copied name.
|
JavaScript File |
Purpose |
Updated |
|
Enables Bulk Import data targets. Includes targets with line items, such as Journal Entries and Sales Orders, as well as functionality for checkboxes. |
Feb 27, 2026 by Theresa Nguyen |
|
|
Handles bulk or large-scale data processing efficiently. |
May 18, 2026 by Theresa Nguyen |
|
|
Wraps around map-reduce.js to make the script usable by DataBlend's automation platform. Note: the mapReduceTask.Id and mapReduceTask.deploymentId is hardcoded and will need to be updated to the IDs generated by NetSuite after the Map Reduce script is created in NetSuite. |
Jan 28, 2026 by Theresa Nguyen |
|
|
Reports back the status and results of long-running NetSuite jobs to DataBlend. |
Jan 28, 2026 by Theresa Nguyen |
⚠️ Change — subrecordscript removed
The subrecordscript_02.02.23.js row has been removed from the scripts table. This script was SuiteScript 1.0 and is no longer available for download. Subrecord functionality (e.g. customer address updates) is now handled within bulk-import.js and map-reduce.js. If your implementation currently uses subrecordscript.js, update to use bulk-import.js instead and deactivate the old script in NetSuite.
If you have uploaded a script from DataBlend into NetSuite before but the file name and API version doesn’t determine whether the script in NetSuite is the latest, compare the potentially outdated script in NetSuite versus the latest script version (from the table above) by navigating to Customization > Scripting > Scripts in NetSuite. Then, follow the below instructions.
1. Expand the filter to ensure TYPE is “RESTlet”, plus API VERSION and SCRIPT FILE is “All”. The SHOW INACTIVES box should NOT be checked.

2. Search for a key word that the file name would include, such as “map” for the Map Reduce or Map Reduce Wrapper script and click Edit on it.
3. Note the API VERSION, then hover your mouse over the SCRIPT FILE box to Open (in a new tab) and click the “preview” link under the MEDIA ITEM section. Note that the SCRIPT FILE field in the Edit Script page allows you to create a new script, or select another one by clicking on the double-down arrows > List > search for the file to select > Save.

4. Ctrl + A or click-and-drag to manually highlight all text, then copy and paste into the left or right textbox of a free online text file comparison tool.
5. Open the latest script in the table above, highlight all text, and copy to paste into the other textbox of the free online text file comparison tool and click the button for the tool to compare both scripts. If there are differences, a new script file will need to be added in NetSuite.
Reminder: de-activate outdated scripts. See NetSuite Collectors for more scripts and the below links to script-specific instructions for Data Targets.
Configuration
-png.png?width=670&height=358&name=Screenshot%20(1271)-png.png)
|
Setting |
Required/ Optional |
Description |
|---|---|---|
|
Query |
Required |
Select the query that will generate the data for this target. |
|
Query Mode |
Required |
Select New unless you have a reason to select Latest or Specific. |
|
Credential |
Required |
Select a NetSuite Credential from the list. |
|
NetSuite Type |
Required |
Select the NetSuite collector type from the drop-down menu. |
|
Script URL |
Required |
The same steps can be followed as in the Create NetSuite RESTlet Script Record guide |
|
Record Type |
Required |
Select the desired record type from the drop-down menu. |
|
Continue On Error |
Optional |
Enable or disable the Continue On Error button. |
bulk-import.js and map-reduce.js. Each script will have its own deployed URL in NetSuite, and each URL is added to its own separate Data Target in DataBlend.
For record types like “customer” or “vendors”, where “address” is a subrecord, two queries and two data targets required.
Data Target with upload-file.js script URL and Record Type “customer” will update everything on the customer record except for addresses. We create a separate query and Data Target for addresses only.
Required fields for Address Book query:
The only other thing we also need is CUSTOMER ID to identify the customer.
“attention” and “addressee” are usually the same value fields. To avoid duplicates in NetSuite UI set “attention” to Null Literal.
With address sent to “customer” we can do billing (from client’s source), we can do shipping. We can not do both. Below is a screenshot from subrecord module.
Advanced
History Retention
History Retention (Days) allows users to decide how long they want the information from their data targets to be stored. This field is optional.
Timeout (seconds)
The Timeout section allows users to determine if they would like to timeout collections taking longer than a set number of seconds to collect data.
Skip If No Records Found
The “Skip if No Records Found” button is used to eliminate sending information to Data Targets unnecessarily. Simply enable the “Skip if No Records Found” toggle. The use of this toggle is optional.
Agent
The Agent drop-down for users to select any agent they have established. This is optional.
Run As
Run As allows users to select from a drop-down list of users to run the Workflow. This is optional. Please note that Run As is only available to Admin users. If a user is set as the Run As and then demoted to a Member, the user which demoted the Run As user will instead be set as the Run As.
Journal Entries Data Target
Minimum required fields to create a Journal Entry in NetSuite:
|
Field Name |
Format |
Notes |
|---|---|---|
|
trandate |
MM/DD/YYYY |
Should match to settings in NetSuite |
|
subsidiary |
Integer |
Subsidiary ID that is in NetSuite |
|
memo |
String Literal |
Header level memo |
|
line |
JSON string |
Sample: [{"account":244, "debit":500.00, "credit":0.00, "memo":"Test Line 03/14/2023", "department":125, "class":8}] |