Migrate from NetSuite to NetSuite v2 in Jitterbit Studio
Introduction
With the release of the NetSuite v2 (Beta) connector, we recommend migrating existing NetSuite connections and activities to NetSuite v2. NetSuite v2 connects to NetSuite using SuiteTalk REST Web Services rather than the SOAP web services used by the NetSuite connector, which Oracle is phasing out.
Because the two connectors are built on different NetSuite APIs, authentication methods and activities do not always correspond one-to-one, and request and response schemas differ in structure and field names. Review the authentication types, activity mapping, and operation patterns below before starting a migration, then follow the migration steps.
Authentication types
indicates the connector supports that authentication type; indicates it does not:
| Authentication type | NetSuite connector | NetSuite v2 (Beta) connector | Notes |
|---|---|---|---|
| Token-Based Authentication (TBA) | Oracle is restricting TBA for new integrations starting with its 2027.1 release. To migrate, use one of the OAuth 2.0 authentication types below. | ||
| OAuth 2.0 Authorization Code Grant | New in NetSuite v2. Uses a three-legged OAuth 2.0 (3LO) browser login flow. See setup. | ||
| OAuth 2.0 Client Credentials | New in NetSuite v2. Uses a JWT bearer client-credentials grant (machine-to-machine, no user login). See setup. |
Activity mapping
| NetSuite activity | NetSuite v2 activity | Notes |
|---|---|---|
| Create | Create | |
| Update | Upsert | NetSuite v2 combines update and upsert into a single activity. |
| Upsert | Upsert | |
| Get List | Read | |
| Delete | Delete | |
| Search (Basic, Expanded, or Advanced Search) | Query | Runs a SuiteQL query instead of a SOAP search, and requires a metadata RESTlet script to be deployed in the NetSuite account. Supports only queries built with the activity's query options. For a more complex SuiteQL query, use an Execute RESTlet activity to call a RESTlet script that runs the query. |
| Search (Saved Search, or Saved Search with result fields as output) | Saved Search | Runs the saved search directly instead of through a SOAP search. The Saved Search Schema Discovery Mode setting's RESTlet-based discovery option replaces the Suitelet-based approach used by Saved Search with result fields as output to limit the response schema to the saved search's columns. |
| Not applicable | Get Job Status | New in NetSuite v2. Required to check the status, and optionally retrieve the result, of a request processed asynchronously with Enable asynchronous processing. |
| Not applicable | Execute RESTlet | New in NetSuite v2. Calls a deployed NetSuite RESTlet script directly, and can be used as a source or a target. |
| Not applicable | Manage Files and Folders | New in NetSuite v2. Manages files and folders in the NetSuite File Cabinet. |
Note
The NetSuite functions (NetSuiteLogin, NetSuiteGetSelectValue, NetSuiteGetServerTime) and the jitterbit.netsuite.async Jitterbit variable apply only to the NetSuite connector and have no equivalent in NetSuite v2. Any scripts that use these must be redesigned as part of the migration, as described in Migration steps for existing projects below.
Operation patterns
NetSuite and NetSuite v2 activities support different sets of valid operation patterns. An operation that uses a pattern NetSuite v2 does not support must be reformatted to a supported pattern as part of the migration. An operation that uses only the Transformation pattern or the Two-transformation pattern needs no restructuring. In the diagrams of reformatted operations below, steps with a bold outline are the activities and transformations that are replaced or added.
| Pattern | NetSuite activities | NetSuite v2 (Beta) activities |
|---|---|---|
| Transformation pattern | All activities. | All activities. |
| Two-transformation pattern | All activities. | All activities. |
| Archive pattern | Search (as a source). | Not supported. See Archive pattern migration. |
| Two-target archive pattern | Create, Update, Upsert, Delete, and Get List (as the first target). Search (as the first or second source). | Read, Query, Saved Search, and Execute RESTlet (as the first source only). The Create, Upsert, Delete, and Get Job Status activities do not support this pattern, nor does Execute RESTlet as a target. See Two-target archive pattern migration. |
| Two-target HTTP archive pattern | Not supported. | Read, Query, Saved Search, and Execute RESTlet (as the first source only). |
Archive pattern migration
The original NetSuite Search activity can write its results directly to a file-based target without a transformation:
NetSuite v2 source activities do not support the Archive pattern, so this arrangement must use the Transformation pattern instead:
To reformat the operation:
-
Replace the Search activity with a NetSuite v2 Query, Saved Search, or Read activity, as described in the activity mapping.
-
Add a transformation between the NetSuite v2 activity and the target.
-
In the transformation, map the NetSuite v2 response fields to the target's schema, or to a schema you define for the file that the target writes.
Two-target archive pattern migration
In the original NetSuite connector, a NetSuite activity can be the middle activity of the Two-target archive pattern, and the second target archives its unchanged response. This applies to the Create, Update, Upsert, Delete, and Get List activities (as the first target) and to the Search activity (as the second source):
NetSuite v2 target activities do not support the Two-target archive pattern, and NetSuite v2 source activities support it only as the first source. This arrangement must use the Two-transformation pattern instead:
To reformat the operation:
-
Replace the NetSuite activity with the corresponding NetSuite v2 activity, as described in the activity mapping. Place it after the first transformation, in the middle of the operation.
-
In the first transformation, map the data to the NetSuite v2 activity's request schema, if the activity has one.
-
Add a second transformation after the NetSuite v2 activity, and map its response fields to the archive target's schema. Each activity page lists its response schema fields, for example in the Upsert activity. The response is structured data, so the archive target receives the fields you map rather than the original unchanged response.
Tip
If an operation cannot follow any valid pattern after reformatting, split it into separate operations that each follow a valid pattern, then chain them together using operation actions. For more information, see the Validation patterns FAQ.
Migration steps for existing projects
The following steps describe how to migrate an operation using the NetSuite connector to use the NetSuite v2 connector instead.
-
As a precaution, before making any changes, deploy the project so you have a restore point to revert to as necessary. Another recommended best practice is to make the following changes in a non-production environment first, then transfer the project to a production environment.
-
Create a NetSuite v2 connection. See the authentication types above and the NetSuite v2 prerequisites for the required setup for each authentication type.
-
For each operation that contains activities from the NetSuite connection you're replacing, add the corresponding NetSuite v2 activity according to the activity mapping above, then select the equivalent record type and operation.
- If migrating a Search activity using Basic, Expanded, or Advanced Search, add a Query activity and deploy the metadata RESTlet script it requires.
- If migrating a Search activity using Saved Search or Saved Search with result fields as output, add a Saved Search activity instead.
- If the operation uses the Archive pattern or the Two-target archive pattern, reformat the operation as described in Operation patterns.
-
Copy the configuration values from the original NetSuite activity to the new NetSuite v2 activity placed next to it, then rebuild the request and response schema mappings in the associated transformations. NetSuite v2 uses NetSuite's REST Record API schema, which differs in structure and field names from the SOAP-based schema used by the NetSuite connector, so existing mappings cannot be copied directly and must be remapped field by field.
-
If the operation or any associated scripts use the NetSuite functions or the
jitterbit.netsuite.asyncJitterbit variable, use the Enable asynchronous processing optional setting together with the NetSuite v2 Get Job Status activity to handle asynchronous requests instead. -
Remove the original NetSuite activities from the affected operations.
-
Verify that the schemas and mappings in relevant transformations are as expected.
-
Deploy any changes to affected operations and verify that they function as intended. Repeat this process until all NetSuite connections and activities in the project have been replaced.
-
As a best practice, use the project pane Components tab filter to find any unused NetSuite activities and remove their remaining references.