NetSuite

Sync data from NetSuite to your warehouse destination via RudderStack.

danger
This source is now deprecated.

NetSuite is a popular business management suite that delivers efficient ERP, CRM, and other ecommerce solutions to thousands of customers worldwide.

This document guides you in setting up NetSuite as a source in RudderStack. Once configured, RudderStack automatically ingests your NetSuite data and routes it to your specified data warehouse destination.

warning
All the Cloud Extract sources support sending data only to a data warehouse destination.

Configuring RudderStack-specific settings in NetSuite

Before you set up a Netsuite source in RudderStack, you need to configure some RudderStack-specific settings in your Netsuite account.

Allowlisting RudderStack IPs

To enable network access to RudderStack, allowlist the following RudderStack IPs depending on your region and RudderStack Cloud plan:

Plan
Region
US
EU
Free, Starter, and Growth
  • 3.216.35.97
  • 18.214.35.254
  • 23.20.96.9
  • 34.198.90.241
  • 34.211.241.254
  • 52.38.160.231
  • 54.147.40.62
  • 3.123.104.182
  • 3.125.132.33
  • 18.198.90.215
  • 18.196.167.201
Enterprise
  • 3.216.35.97
  • 34.198.90.241
  • 44.236.60.231
  • 54.147.40.62
  • 100.20.239.77
  • 3.66.99.198
  • 3.64.201.167
  • 3.123.104.182
  • 3.125.132.33
info
All the outbound traffic is routed through these RudderStack IPs.

To allowlist the above IPs in NetSuite, follow these steps:

  1. Sign into your NetSuite account as an administrator.
  2. Go to Setup > Company > Company Information.
  3. Add a comma-delimited list of the above-mentioned RudderStack IPs in the Allowed IP addresses field.
  4. Finally, click Save.

Enabling token-based authentication

To enable token-based authentication for your NetSuite account in order to generate tokens, follow these steps:

  1. Go to Setup > Company > Enable Features.
Token based Authentication in Netsuite
  1. Select the SuiteCloud tab.
  2. Under the SuiteScript section, check the CLIENT SUITESCRIPT and SERVER SUITESCRIPT settings and click I Agree to access the SuiteCloud terms of service.
Token based Authentication in Netsuite
  1. Under the Manage Authentication section, check TOKEN-BASED AUTHENTICATION.
Token based Authentication in Netsuite
  1. Finally, click Save.

Creating a new integration flow

To uniquely identify RudderStack in your NetSuite account, you also need to create an integration record for RudderStack. Follow these steps:

  1. Go to Setup > Integration > Manage Integrations > New.
  2. Enter the following settings:
    • Name: Enter the name for your integration, for example, RudderStackIntegration.
    • State: This field should be Enabled.
  3. In the Authentication tab, check Token-based Authentication.
warning
Remember to uncheck all the other options.
New integration in Netsuite
  1. Finally, click the Save button.
  2. In the resulting confirmation page, you can see the CONSUMER KEY / CLIENT ID and CONSUMER SECRET / CLIENT SECRET under Client Credentials, as shown:
New integration in Netsuite
warning
Store this consumer key and secret safely. You will need these credentials while setting up the NetSuite source in RudderStack.

Creating a NetSuite role and configure permissions

To create a NetSuite Token ID and Secret, you first need to create a Role for RudderStack and an Employee with this specific role.

Step 1: Create a role

To create a new role, follow these steps:

  1. Go to Setup > Users/Roles > Manage Roles > New.
Create new role in NetSuite
  1. Enter a name for the role in the Name field, for example, RudderStack.
  2. Select Two-Factor Authentication Required to Not Required.
2FA Authentication in Netsuite
  1. Under the Permissions section, go to Setup and assign the following permissions:
    • Full permissions
      • SOAP Web Services
      • User Access Tokens
      • Log in using Access Tokens
      • Deleted Records
    • View permissions
      • Custom Fields
      • Custom Body Fields
      • Custom Lists
      • Customer Status
Permissions in Netsuite

For each pipeline resource that you want RudderStack to sync, you should give the role the relevant permissions to access it. These resources are divided among the following sections:

  • Transactions
  • Reports
  • Lists
  • Custom Records
info
Note that each permission should have View level.
warning
It is extremely important that you have assigned the permissions for every resource, saved search or custom record that you want RudderStack to sync. This is required so that you don’t encounter any RudderStack sync failures with permission-related issues.

Step 2: Create an employee

To create a new employee, follow these steps:

  1. Go to Lists > Employees > Employees > New.
  2. Then, enter the name and email ID of the employee.
  3. Under the Access tab, check Give Access and Manually assign or change password. Then add the required password.
Adding an employee in Netsuite
  1. Finally, add the Role which you have created in the previous step and click Save to save the settings.
Adding an employee in Netsuite

Step 3: Create an access token

In this step, you need to generate the access tokens required for the integration record (application) and the user role.

info
To generate the access token, you may have to first log in as the user created in the previous step.
Access token settings in Netsuite
  1. Go to Setup > Users/Roles > Access Tokens > New.
  2. Then, enter the following settings:
    • Application Name: Select the integration record you created.
    • User: Select the user you created.
    • Role: Select the role you created.
    • Token Name: Assign a name for the token.
  3. Finally, click the Save button. The confirmation page will display a Token ID and Secret, as shown:
Access token settings in Netsuite
warning
For security reasons, this is the only time these credentials will be displayed. Hence, copy and store the Token ID and Token Secret safely. You will need these credentials while setting up the NetSuite source in RudderStack.

Locating your NetSuite Account ID

To locate your NetSuite account ID, go to Setup > Integration > SOAP Web Services Preferences.

You will find the account ID in the resulting page, as highlighted below:

Account ID in Netsuite
warning
Enter the complete account ID including the suffix (for example, 1234567_SB2) while configuring your NetSuite source in RudderStack.

Configuring NetSuite source in RudderStack

To set up NetSuite as a source in RudderStack, follow these steps:

  1. Log into your RudderStack dashboard.
  2. Go to Sources > New source > Cloud Extract and select NetSuite from the list of sources.
  3. Assign a name to your source and click Continue.

Connection settings

Enter the following connection credentials required to set up your NetSuite source in RudderStack:

  • Account Name : Enter an account name of your choice.
success
You can set any account name of your choice.
  • Account ID : Enter the NetSuite account ID. You can get the account ID by going to your NetSuite dashboard and navigating to Setup > Integration > Web Services Preferences. For more information, refer to the Locating your NetSuite Account ID section above.
  • Consumer Key : Enter your NetSuite consumer key.
  • Consumer Secret : Enter your NetSuite consumer secret.
info
For more information on obtaining the NetSuite consumer key and secret, refer to the Creating a new integration flow section above.
  • Token ID : Enter your NetSuite token ID.
  • Token Secret : Enter your NetSuite token secret.
info
For more information on obtaining the NetSuite token ID and secret, refer to the Create an access token section above.

Setting the historical sync date

Set the Historical sync start date from when you want RudderStack to sync all your historical NetSuite data. Also specify the RudderStack Restlet URL and click Next, as shown:

Netsuite connection settings
warning
To get the RudderStack Restlet URL, you need to first install this script in your NetSuite account and paste the generated restlet URL in the RudderStack dashboard. For more information on adding the script in your NetSuite account, refer to the FAQ section below.

Destination settings

The following settings specify how RudderStack sends the data ingested from NetSuite to the connected warehouse destination:

  • Table prefix: RudderStack uses this prefix to create a table in your data warehouse and loads all your NetSuite data into it.
  • Schedule Settings: RudderStack gives you three options to ingest the data from NetSuite:
    • Basic: Runs the syncs at the specified time interval.
    • CRON: Runs the syncs based on the user-defined CRON expression.
    • Manual: You are required to run the syncs manually.
info
For more information on the schedule types, refer to the Common Settings guide.

Selecting the data to import

Finally, you need to select the NetSuite data that you wish to ingest via RudderStack. You can either select all the data, or choose specific NetSuite data attributes, as per your requirement, as shown:

warning
Note that none of the resources are selected by default, so you will have to do the selection manually.
Selecting import data

Importing custom records and saved searches

RudderStack supports two special types of resources that you can ingest from NetSuite, namely custom records and saved searches. To import these resources, click Add Resource on the top right, as shown above. You will see the following window:

Cloning resources
  • If you have already configured a NetSuite resource before, you can choose the Clone from option to use the values of that resource as is.
  • Alternatively, select the appropriate Resource type you want to import:
    • For a saved_search, enter a Name for the resource, select the Record type present in your NetSuite account, and the exact Saved search that you have created there.
    • For a custom_record, enter a Name for the resource and select the custom record that is present on your NetSuite account.
  • Finally, save the information by clicking on Save.

NetSuite is now configured as a source. RudderStack will start ingesting data from NetSuite as per your specified schedule and frequency.

You can further connect this source to your data warehouse by clicking on Add Destination, as shown:

Adding a destination
success
Use the Use Existing Destination option if you have an already-configured data warehouse destination in RudderStack. To configure a data warehouse destination from scratch, select the Create New Destination button.

FAQ

How can I get the RudderStack Restlet URL?

To get the RudderStack Restlet URL, you need to first install this script in your NetSuite account and paste the generated Restlet URL in the dashboard settings.

To install the script, follow these steps:

  1. Go to Customization > Scripting > Scripts > New.
  2. Then, click the + icon to create a new script.
  3. Select the downloaded script in SELECT FILE.
  4. Click Save, followed by Create Script Record.
Creating a new script in NetSuite
  1. Then, add the Name of the script and the Owner, that is the Employee that you created in the Creating an employee section above. Then click Save.
Employee details NetSuite
  1. To deploy the script, click Deployments, add the script Title, and click Add. After the script is deployed, click Save.
Script deployment NetSuite
  1. Finally, click the title of your deployed script. You should be able to see the External URL, which is the RudderStack Restlet URL that you need to use in the NetSuite source configuration.
Restlet URL NetSuite

Is it possible to have multiple Cloud Extract sources writing to the same schema?

Yes, it is. RudderStack associates a table prefix for every Cloud Extract source writing to a warehouse schema. This way, multiple Cloud Extract sources can write to the same schema with different table prefixes.

How does RudderStack count the events for Cloud Extract sources?

RudderStack counts the number of records returned by the source APIs when queried during each sync. It considers each record as an event.


Questions? Contact us by email or on Slack