NetSuite v2 (Beta) Create activity in Jitterbit Studio
Introduction
A NetSuite v2 (Beta) Create activity, using its NetSuite v2 (Beta) connection, inserts one or more records for a chosen NetSuite record type and is intended to be used as a target to consume data in an operation.
Note
This connector is currently in beta. To provide feedback, contact the Jitterbit Product Team.
Create a NetSuite v2 (Beta) Create activity
An instance of a NetSuite v2 (Beta) Create activity is created from a NetSuite v2 (Beta) connection using its Create activity type.
To create an instance of an activity, drag the activity type to the design canvas or copy the activity type and paste it on the design canvas. For details, see Creating an activity instance in Component reuse.
An existing NetSuite v2 (Beta) Create activity can be edited from these locations:
- The design canvas (see Component actions menu in Design canvas).
- The project pane's Components tab (see Component actions menu in Project pane Components tab).
Configure a NetSuite v2 (Beta) Create activity
Follow these steps to configure a NetSuite v2 (Beta) Create activity:
-
Step 1: Enter a name and select a record type
Provide a name for the activity, select a record type, and specify optional settings. -
Step 2: Select an operation
Select an operation and specify optional settings. -
Step 3: Review the data schemas
Any request or response schemas are displayed.
Step 1: Enter a name and select a record type
In this step, provide a name for the activity, select a record type, and specify optional settings. Each user interface element of this step is described below.
Tip
Fields with a variable icon support using global variables, project variables, and Jitterbit variables. Begin either by typing an open square bracket [ into the field or by clicking the variable icon to display a menu listing existing variables to choose from.
-
Endpoint menu: If you have multiple endpoints of the same connector type configured, a menu at the top of the screen displays the current endpoint name. Click the menu to switch to a different endpoint. For more information, see Change the assigned endpoint in Configuration screens.
- Edit endpoint: Appears when you hover over the current endpoint name. Click to edit the currently selected endpoint's connection configuration.
-
Name: Enter a name to identify the activity. The name must be unique for each NetSuite v2 (Beta) Create activity and must not contain forward slashes
/or colons:. -
Select a Record Type: Browse and select the NetSuite record type to create (for example,
CustomerorSalesOrder).-
Selected record type: After a record type is selected, it is listed here.
-
Search: Enter a value into the search box to filter the list of record types. The search is not case-sensitive. If record types are already displayed within the table, the table results are filtered in real time with each keystroke. To reload record types from the endpoint when searching, enter search criteria and then refresh, as described below.
-
Refresh: Click the refresh icon or the word Refresh to reload record types from the NetSuite v2 (Beta) endpoint. This may be useful if record types have been added to NetSuite. This action refreshes all metadata used to build the table of record types displayed in the configuration.
-
Selecting a record type: Within the table, click anywhere on a row to select a record type. Only one record type can be selected. The information available for each record type is fetched from NetSuite's REST Record API metadata catalog:
- Name: The name of the record type.
Tip
If the table does not populate with available record types, the NetSuite v2 (Beta) connection may not be successful. Ensure you are connected by reopening the connection and retesting the credentials. If the connection is successful, the role used to connect may be missing permission for the record type, or the record type may require an account feature to be enabled; see Enable NetSuite record types.
-
-
Optional settings: Click to expand additional optional settings:
- Continue on error: Select to continue the activity execution if an error is encountered for a dataset in a batch request. If any errors are encountered, they are written to the operation log.
-
Save & Exit: If enabled, click to save the configuration for this step and close the activity configuration.
-
Next: Click to temporarily store the configuration for this step and continue to the next step. The configuration will not be saved until you click the Finished button on the last step.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Step 2: Select an operation
In this step, select an operation and specify optional settings. Each user interface element of this step is described below.
-
Select an Operation: Browse and select which insert operation to perform for the selected record type. A record type can have more than one insert operation, such as inserting the record itself or adding an item to one of its sublists. Inserting a record is always listed as two separate operations, Insert a record and Insert a list of records, so you can choose whether to insert a single record or a list of records. Some operations, such as adding an item to a sublist, also require a record's ID in the
params>path>idfield of the request schema. To check whether an operation requires path parameters, review the request schema in Step 3.-
Selected operation: After an operation is selected, it is listed here.
-
Search: Enter a value into the search box to filter the list of operations. The search is not case-sensitive. If operations are already displayed within the table, the table results are filtered in real time with each keystroke. To reload operations from the endpoint when searching, enter search criteria and then refresh, as described below.
-
Refresh: Click the refresh icon or the word Refresh to reload operations from the NetSuite v2 (Beta) endpoint. This may be useful if operations have been added for the selected record type. This action refreshes all metadata used to build the table of operations displayed in the configuration.
-
Selecting an operation: Within the table, click anywhere on a row to select an operation. Only one operation can be selected. The information available for each operation is fetched from NetSuite's REST Record API metadata catalog:
- Name: The name of the operation.
Tip
If the table does not populate with available operations, the NetSuite v2 (Beta) connection may not be successful. Ensure you are connected by reopening the connection and retesting the credentials.
NetSuite accepts a maximum of 100 records in one batch request. The Insert a list of records operation sends its records as a batch request, so send no more than 100 records at a time. For more information, see NetSuite's Batch Operations documentation.
The Insert a list of records operation is always processed asynchronously, even when Enable asynchronous processing is not selected. Instead of record IDs, the operation returns a job ID. This is expected behavior, not an error. Use the Get Job Status activity to retrieve the result.
-
-
Optional settings: Click to expand additional optional settings:
- Enable asynchronous processing: Select to have the insert processed asynchronously by NetSuite. Not selected by default. When selected, the activity receives a job reference instead of an immediate record response, and the Get Job Status activity can then be used to retrieve the result. Using the Insert a list of records operation always processes the insert asynchronously, regardless of this setting.
-
Back: Click to temporarily store the configuration for this step and return to the previous step.
-
Next: Click to temporarily store the configuration for this step and continue to the next step. The configuration will not be saved until you click the Finished button on the last step.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Step 3: Review the data schemas
Any request or response schemas are displayed. Each user interface element of this step is described below.
-
Data schema: These data schemas are inherited by adjacent transformations and are displayed again during transformation mapping.
Note
Data supplied in a transformation takes precedence over the activity configuration.
The request schema groups its parameters under
paramsaspath,query, andheader, followed by abodyfield for the record's data. Parameters left empty are not sent to NetSuite. For the Insert a record and Insert a list of records operations, the request schema offers these header parameters:Parameter Group Type Required Description X-NetSuite-PropertyNameValidationheaderString No Sets the strictness of property name validation. Valid values are Error,Warning, andIgnore. Default:Warning.X-NetSuite-PropertyValueValidationheaderString No Sets the strictness of property value validation. Valid values are Error,Warning, andIgnore. Default:Error.X-NetSuite-Idempotency-KeyheaderString No A unique key (a UUID in string format) that ensures an asynchronous request runs only once. NetSuite ignores this value for a synchronous request. See NetSuite's REST Web Services Request Processing documentation. Other operations, such as adding an item to a sublist, may also include path parameters that identify the parent record; see Step 2. The
Preferheader is not part of the request schema because the Enable asynchronous processing setting and the selected operation control it.NetSuite returns no body on success, so the response schema for each item returns these fields instead:
isSuccess: Whether the insert succeeded.id: The created record's ID. When Enable asynchronous processing is selected, or when using the Insert a list of records operation, this is instead the job reference's ID derived from the endpoint'sLocationresponse header.Location: The endpoint'sLocationresponse header value, identifying the created record. When Enable asynchronous processing is selected, or when using the Insert a list of records operation, this identifies the job reference instead, which can be used with the Get Job Status activity to retrieve the result.errors: Any errors returned by the insert, withcauseanddetailedMessagefields.
The NetSuite v2 (Beta) connector uses NetSuite's SuiteTalk REST Web Services. Refer to the API documentation for additional information.
-
Refresh: Click the refresh icon or the word Refresh to regenerate schemas from the NetSuite v2 (Beta) endpoint. This action also regenerates a schema in other locations throughout the project where the same schema is referenced, such as in an adjacent transformation.
-
Back: Click to temporarily store the configuration for this step and return to the previous step.
-
Finished: Click to save the configuration for all steps and close the activity configuration.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Next steps
After configuring a NetSuite v2 (Beta) Create activity, complete the configuration of the operation by adding and configuring other activities, transformations, or scripts as operation steps. You can also configure the operation settings, which include the ability to chain operations together that are in the same or different workflows.
Menu actions for an activity are accessible from the project pane and the design canvas. For details, see Activity actions menu in Connector basics.
NetSuite v2 (Beta) Create activities can be used as a target with these operation patterns:
- Transformation pattern
- Two-transformation pattern (as the first or second target)
To use the activity with scripting functions, write the data to a temporary location and then use that temporary location in the scripting function.
When ready, deploy and run the operation and validate behavior by checking the operation logs.