NetSuite Upsert List

Overview

The NetSuite Upsert List Snap provides the ability to create or update records in NetSuite by defining an object.

The fields that can be set on the object are provided on the input view of the Snap and can be mapped using an upstream Data or Structure Snap. The Snap batches up to 100 records per request.

Note: Empty number values should be given as 0.0, not as null.


Limitations

  • Supports only NetSuite Web Services-supported objects. For information on the supported objects, see NetSuite Help Center.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has exactly one document input view.

Expected input: This Snap provides schema on its input view for the selected object that can then be used in a Mapper Snap to map the required fields.

Output

This Snap has at most one document output view.

Expected output: This Snap provides the result of the upsert (update and insert) operation for the given criteria on the output view. Errors can be routed to the error view if enabled or cause the Snap to fail during execution.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: NetSuite Upsert List

Batch Size*

Integer/Expression
The maximum number of input documents to batch in a single request. Set to 1 to make a separate request for each input document.

Default value: 100

Example: 50

Object*

Dropdown list
The NetSuite Object type to update. For example, to search for records of a custom record type, select Custom Record from the available options.

To use the AdvInterCompnayJournalEntry object in NetSuite, particularly in a OneWorld or multi-subsidiary environment, you must configure a custom role with the appropriate permissions, including Transactions Make Journal Entry (Full).

Note: NetSuite's application requires the Oneworld extension for utilizing these subsidiary relationships, and Snap integration should use WSDL 2019_1 or later versions.

Default value: Account

Example: Customer

Custom record

Dropdown list
Custom record type to update. This is applicable and required only if Custom Record is selected for an Object.

Default value: N/A

Route records to appropriate views

Checkbox
If selected, the Snap parses the response and routes resulting records to the output view or the error view depending on the resulting status: success or failure. If not selected, the Snap would not parse the response and write the document(s) to the output view or the error view per each batch.

Default value: Deselected

Pass through*

Checkbox
If selected, the Snap passes the input document to the output view under the 'original' key. If not selected, the input document is not passed through to the output view. The error view always has an input document in each error document whether this property is selected or not. This property matters only if the "Route records to appropriate views" property is selected.

Default value: Selected

Request timeout*

Integer/Expression
The timeout for the web service call (in seconds). 0 indicates no timeout.

Default value: 0

Example: 10

Maximum request attempts*

Integer/Expression
Specifies the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response.

Default value: 3

Example: 5

Retry request interval*

Integer/Expression
Specifies the interval (in seconds) between two successive requests. A retry happens only when the previous attempt resulted in an exception.

Default value: 2

Example: 5

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.