Skip to content

Connect data / Integrations

NetSuite

Connect NetSuite to report on order-to-cash, receivables, payables, inventory and the general ledger. Resplendent reads NetSuite through SuiteQL, signing in with your integration’s certificate. It never creates, changes or deletes NetSuite records.

You need:

  • Your NetSuite Account ID, such as 1234567, or 1234567-sb1 for a sandbox.
  • A dedicated NetSuite Integration record set up for OAuth 2.0 Client Credentials (Machine to Machine).
  • A certificate uploaded to that integration, and its matching private key as a PEM file.
  • A NetSuite role with the OAuth 2.0 and REST web services permissions below, and read-only access to the records behind the Datasets you want. Customers is required; everything else is optional.
  1. In NetSuite, go to Setup → Integration → Manage Integrations → New to create a dedicated Integration for Resplendent.
  2. On the Authentication subtab, check Client Credentials (Machine to Machine) Grant. Under the OAuth 2.0 scopes, check REST Web Services and RESTlets. Resplendent’s token request asks for both scopes.
  3. Click Save and copy the Client ID right away. NetSuite shows it only the first time you save the record; after that you have to reset the credentials to get a new one.
  4. Generate a certificate and keep its private key PEM.
  5. Create or choose a role for the integration. In Setup → Users/Roles → Manage Roles, give it Log in using OAuth 2.0 Access Tokens and REST Web Services (Full) on the Setup subtab, and SuiteAnalytics Workbook (Edit) on the Reports subtab. Resplendent reads NetSuite through SuiteQL over REST web services, which needs all three. Give it View access only to the records behind the Datasets you want.
  6. In Setup → Integration → Manage Authentication → OAuth 2.0 Client Credentials (M2M) Setup, click Create New. Select the entity, role, and integration application. Upload the public certificate and save the mapping.
  7. Copy the Certificate ID from the saved mapping, and your Account ID.
  1. Open Settings → Integrations.
  2. Find NetSuite and click Connect.
  3. Under Private key file, click Choose file and pick the PEM file, or paste the key into Private key (PEM).
  4. Enter the Account ID, Client ID and Certificate ID.
  5. Enter a Connection Title and click Save & Test.
  6. When the test passes, click Sync Dataset and choose the Datasets and columns to sync.

The test signs in and reads one customer, so it proves the role can read Customers. It doesn’t check the other Datasets. If the role can’t read one of them, that Dataset’s preview shows a warning and its syncs fail until you grant access; the connection keeps working.

When you edit a saved connection, leave Private key (PEM) blank to keep the current key.

Incremental Datasets sync every minute by default, which is also the minimum. Snapshots sync daily by default and at most every 6 hours. Your plan’s refresh limits also apply.

Dataset What it holds Sync
Customers Customer records (required for the connection test) Incremental
Contacts Contacts Incremental
Customer Contact Roles Which contacts hold which roles for a customer Snapshot
Customer Addresses Customer address book entries Incremental
Items Products and SKUs Incremental
Inventory Balance Current quantities by item, location, bin, lot or serial, and status Snapshot
Aggregate Item Location Current item and location totals, including commitments Snapshot
Item Receipt Inventory Assignments Serial and lot assignments on item receipt lines Snapshot
Inventory Numbers Serial and lot numbers with item and expiration date Snapshot
Estimates Quote headers Incremental
Estimate Lines Quote lines Incremental
Invoices Invoice headers, with Sales Rep Incremental
Invoice Lines Invoice lines Incremental
Sales Orders Sales order headers, with Sales Rep and tracking numbers Incremental
Sales Order Lines Sales order lines Incremental
Item Fulfillments Fulfillment headers Incremental
Transaction Links Links between transaction lines, such as order to invoice Incremental
Transaction Statuses Readable labels for status codes Snapshot
Vendors Vendor records Incremental
Employees Employee records Incremental
Accounts Chart of accounts Incremental
Subsidiaries Subsidiaries Incremental
Locations Locations Incremental
Departments Departments Incremental
Classes Classes Incremental
Ship Items Shipping method names Snapshot
Credit Memos Credit memo headers, with Sales Rep Incremental
Credit Memo Lines Credit memo lines Incremental
Customer Payments Customer payments Incremental
Customer Deposits Customer deposits Incremental
Deposit Applications Deposit applications Incremental
Customer Refunds Customer refunds Incremental
Cash Sales Cash sale headers, with Sales Rep Incremental
Cash Sale Lines Cash sale lines Incremental
Vendor Bills Vendor bill headers Incremental
Vendor Bill Lines Vendor bill lines Incremental
Vendor Credits Vendor credit headers Incremental
Vendor Credit Lines Vendor credit lines Incremental
Vendor Payments Vendor payments Incremental
Purchase Orders Purchase order headers Incremental
Purchase Order Lines Purchase order lines Incremental
Item Receipts Item receipt headers Incremental
Item Receipt Lines Item receipt lines Incremental
Return Authorizations Return authorization headers Incremental
Return Authorization Lines Return authorization lines Incremental
Transfer Orders Transfer order headers Incremental
Transfer Order Lines Transfer order lines Incremental
Transaction Accounting Lines Debits and credits, including COGS, with a posting flag Incremental
Transactions One header per transaction, across every type the role can see Incremental
Accounting Periods Period names, dates, parents and fiscal flags Snapshot

Line Datasets leave out the transaction’s header row. Use taxline to tell tax lines apart. Quantities and amounts keep NetSuite’s signs, and base-currency and transaction-currency amounts are labeled separately.

From To On
Estimate Lines Estimates transaction = id
Estimate Lines Items item = id
Sales Orders Ship Items shipmethod = id
Transaction Accounting Lines Transactions transaction = id
Transactions Accounting Periods postingperiod = id
Item Receipt Inventory Assignments Item Receipt Lines receipt_line_uniquekey = uniquekey
Item Receipt Inventory Assignments Item Receipts transaction = id
  • Estimates come from the transaction record, which has no sales rep. Use Invoices, Sales Orders, Cash Sales or Credit Memos when a report needs one.
  • Sales Orders include Tracking Numbers: the carrier tracking numbers as text, or empty when there are none. If your Sales Orders Dataset predates this column, add it and resync. A fulfillment change that doesn’t touch the order shows up after the nightly resync.
  • Transactions include document number (tranid), type, transaction date, posting period, posting flag, currency and exchange rate. Don’t infer the posting period from the transaction date; document numbers aren’t unique. Single Subsidiary Internal ID is filled in only when all of a transaction’s visible lines share one subsidiary, and it needs read access to transaction lines.
  • Accounting Periods include the parent period and year and quarter flags. Its closed flag is the period record’s; it doesn’t cover every accounting book.
  • Transaction Accounting Lines can have an empty account. Resplendent passes those rows through unchanged, so reconcile them before you validate financial results.
  • Transaction Links are keyed on Transaction Link Key (transaction_link_key), built from both documents, both lines and the link type.
  • Transaction Statuses have no unique key. Join on trantype, trancustomtype and id together, because custom transaction types can reuse status codes.

NetSuite’s query service doesn’t publish a full column list, so each Dataset’s column picker combines:

  • the fields Resplendent already knows for that Dataset,
  • the columns you’ve already selected, and
  • the fields seen in up to 100 sample records, including custom fields (custentity_*, custbody_*, custitem_*, custcol_*).

A field that’s empty in every sampled record won’t appear unless it’s already known or selected. The preview warns you when the list may be incomplete. To find field IDs, use NetSuite’s Records Catalog, which needs the Records Catalog permission.

Each Dataset starts with a small set of columns selected, and you can add any other. Types are fixed: amounts and quantities are numbers, checkboxes are true or false, calendar fields are dates, timestamps are UTC date-times, and IDs, references and text stay text so leading zeros survive. Custom field types come from NetSuite’s custom field definitions, so the role needs to read them when you select custom fields.

  • Incremental Datasets. The first sync loads one batch, 1,000 rows by default. Later syncs keep loading older records until the history is in. After that, each sync pulls records changed since the last one, with a two-minute overlap. Timestamps are in UTC.
  • Deletions. A nightly resync replaces each incremental Dataset with its first batch and reloads its history, so records deleted in NetSuite disappear. Regular syncs can’t see deletions or every intermediate edit, and a parent record’s timestamp doesn’t always change when a related record does. Sync Customer Addresses on its own if its changes matter.
  • Snapshots. Customer Contact Roles, Ship Items, Accounting Periods and Transaction Statuses have no reliable change timestamp, so each sync replaces them. Transaction Statuses keeps up to the Dataset’s Batch Size rows (1,000 by default, up to 100,000); the others load the whole list.

Previews of Transactions and Item Fulfillments read the last 90 days only. Their syncs have no such limit.

Inventory Balance and Aggregate Item Location are replaced on each sync, daily by default. Each refresh is the current state seen during that sync, not transaction history or real-time stock.

Dataset One row per Quantities
Inventory Balance Item, location, bin, inventory number and status On hand, available, picked
Aggregate Item Location Item and location On hand, available, committed, on order, backordered, in transit
  • Each holds up to 10,000 rows by default; raise Batch Size to as many as 100,000. If NetSuite has more rows than the limit, the sync fails and keeps the previous snapshot.
  • Use Aggregate Item Location for commitments. Don’t sum location commitments after joining them to bins, lots or statuses.
  • Quantities are in Source Units, exactly as NetSuite returns them; nothing is converted. Each row carries the item’s stock unit, conversion rate and base unit as context. Check a few items against a trusted NetSuite report before converting or totaling mixed units.
  • The role needs read access to the inventory records, items and units.

Item Receipt Inventory Assignments has one row per serial or lot assignment on an item receipt line, with its own signed quantity, bin and status. A line can have several. inventorynumber_value is the serial or lot text. Sum assignments at their own grain, and roll them up to the line before comparing with the line’s quantity. Don’t join on document numbers, line sequence, item or serial text.

Inventory Numbers is a lookup of serial and lot numbers with item and expiration date.

Both are replaced on each sync, daily by default. They keep the newest 25,000 rows by default, up to 100,000 with Batch Size. Unlike the inventory snapshots, more rows than the limit doesn’t fail the sync, so the limit can cut off older receipts or split a line’s assignments. Raise it before reconciling full lines. The role needs read access to inventory assignments, receipts, transaction lines and inventory numbers.

Problem What to do
The connection test fails Check the Account ID, Client ID, Certificate ID and private key, that the integration has the REST Web Services and RESTlets scopes, and that the role can read customers.
A Dataset shows a permission warning Grant the integration’s role read access to that record type.
A custom field stops a sync The role can’t read that field’s type. Grant access to custom field definitions, or deselect the field.
An inventory snapshot fails with too many rows Raise the Dataset’s Batch Size, up to 100,000.
Transaction Links rows look collapsed Edit the Dataset: turn off Use Virtual Primary Key, set Unique Key to transaction_link_key, keep lastmodifieddate as Sorting Column, then save and resync.
Transaction Statuses rows look wrong Edit the Dataset: turn off Use Virtual Primary Key, set Unique Key and Sorting Column to None, then save and resync.
An older Dataset still shows text-only columns or misses rows Open it, save it so it picks up the current settings, then resync.