The Salesforce Agentforce Revenue Management – NetSuite quickstart integration template connects Salesforce Agentforce Revenue Management (ARM), your revenue system of record, with NetSuite, your financial system of record. Salesforce accounts become NetSuite customers, approved quotes become sales orders, and activated contracts become SuiteBilling subscriptions. NetSuite invoices, payments, credit memos, and revenue recognition plans sync back to Salesforce, so sales and finance teams see the same numbers. This article is for Salesforce administrators, NetSuite administrators, and implementation teams who install, configure, and turn on the template.
Important: This template is in beta. Install it in a Salesforce sandbox and a NetSuite sandbox first, run each flow with a few test records, and check the results before you use it in production. To report an issue, submit a support ticket with the flow name, the run time, and the full error message.
Note: In this article, ARM always means Salesforce Agentforce Revenue Management. NetSuite Advanced Revenue Management is always written in full.
Supported integration flows
The template includes nine flows in four flow groups: Customer, Sales Order, Subscription, and Financials. All flows install turned off. Each flow runs on a schedule and picks up only the records changed since its last run. You can change the schedule on each flow after you install the template.
Salesforce to NetSuite
| Flow | Flow group | Default schedule |
|---|---|---|
| Salesforce accounts to NetSuite customers | Customer | Every 15 minutes |
| Salesforce quotes to NetSuite sales orders | Sales Order | Every 15 minutes |
| Salesforce orders to NetSuite sales orders for status sync | Sales Order | Every 15 minutes |
| Salesforce contracts to NetSuite subscriptions | Subscription | Every 15 minutes |
| Salesforce assets to NetSuite subscriptions for amendments | Subscription | Every 15 minutes |
| Salesforce contract renewals to NetSuite subscriptions | Subscription | Every 15 minutes |
NetSuite to Salesforce
| Flow | Flow group | Default schedule |
|---|---|---|
| NetSuite invoices to Salesforce invoices | Financials | Every 30 minutes |
| NetSuite payments and credit memos to Salesforce invoices for status sync | Financials | Every 30 minutes |
| NetSuite revenue recognition plans to Salesforce revenue schedules | Financials | Daily at 02:05 (integrator.io account time zone) |
How the template matches records
Each flow matches records on a key shared by both systems, so running a flow again updates records instead of creating duplicates.
| Record | Matching key |
|---|---|
| NetSuite customer, sales order, and subscription | The NetSuite External ID holds the Salesforce ID: the account ID on customers, the quote ID on sales orders, and the contract ID on subscriptions. |
| Salesforce account, quote, order, contract, asset, and product | The NetSuite Id field (celigo_sfnsio__NetSuite_Id__c) holds the NetSuite internal ID. The flows write it back after they create the NetSuite record. |
| Salesforce invoice |
Description holds NS-INV- followed by the NetSuite invoice ID. |
| Salesforce credit note |
Description holds NS-CM- followed by the NetSuite credit memo ID. |
| Salesforce revenue schedule |
Description holds NS-REV- followed by the NetSuite revenue recognition plan ID. |
Important: Don't edit the matching keys. If someone edits Description on a synced Salesforce invoice, credit note, or revenue schedule, the next change to the NetSuite record creates a new Salesforce record instead of updating the existing one. If someone clears NetSuite Id on a quote or contract, the record is sent to NetSuite again. Because Description carries the key, the memo text of a NetSuite credit memo isn't copied to Salesforce.
Prepare Salesforce, NetSuite, and integrator.io
Complete these requirements before you install the template. If you install first and then find a missing feature, package, or permission, you have to reauthorize the connections and repeat setup steps.
Salesforce requirements
- Agentforce Revenue Management — The org has Agentforce Revenue Management, with the Quote, QuoteLineItem, Order, Contract, Asset, Invoice, CreditNote, and RevenueSchedule objects available through API version 62.0 or later.
- Quotes — Go to Setup > Quote Settings, and select Enable Quotes. Without Quotes, the Quote object doesn't exist and the quote flow can't run.
-
Celigo NetSuite package — Install the package (namespace
celigo_sfnsio) for All Users before you install the template. It's the same package that the Salesforce – NetSuite template uses. For install steps, see Salesforce – NetSuite template implementation guide. The template uses the package's NetSuite Id field (celigo_sfnsio__NetSuite_Id__c) on Account, Quote, Order, Contract, Asset, and Product2, and the Skip Export To NetSuite field (celigo_sfnsio__Skip_Export_To_NetSuite__c) on Quote. - Integration user — Create or choose a user with API access and Read and Edit permissions on Account, Quote, QuoteLineItem, Order, Contract, Asset, Product2, Invoice, CreditNote, and RevenueSchedule. The user also needs field-level access to the NetSuite Id and Skip Export To NetSuite package fields and to Description on Invoice, CreditNote, and RevenueSchedule.
NetSuite requirements
- Features — Go to Setup > Company > Enable Features. In SuiteCloud, turn on Token-Based Authentication, SOAP Web Services, and Server SuiteScript.
- integrator.io SuiteApp — Install the Celigo integrator.io SuiteApp from the NetSuite SuiteApp Marketplace. Every NetSuite step in the template uses it. For instructions, see Install and use the integrator.io SuiteApp.
- SuiteBilling — Required only for the three Subscription flows. If SuiteBilling is off, leave those flows off.
- Advanced Revenue Management — Required only for the NetSuite revenue recognition plans to Salesforce revenue schedules flow. If it's off, leave that flow off.
Collect these NetSuite values for the template settings:
- Subsidiary — For a OneWorld account, the internal ID of the subsidiary where new customers are created. Customer creation fails without it.
- Location and tax code — The internal IDs of a default location and tax code, if your sales order lines require them.
- Discount item — The internal ID of a discount item, if you want discounts as separate sales order lines.
- Mandatory custom body fields — Any custom body fields that your sales order form makes mandatory, such as Order Type or End User. Each one needs a default mapping in both sales order imports. See Salesforce quotes to NetSuite sales orders.
Create the NetSuite integration role and access token
- Go to Setup > Users/Roles > Manage Roles, and clone the Celigo integrator.io Full Access w/o 2FA role. Use only letters and numbers in the role name; token-based authentication rejects role names with spaces or hyphens.
- Give the role these permissions:
| Permission area | Permissions |
|---|---|
| Transactions | Sales Order, Invoice, Customer Payment, and Credit Memo: Full |
| Lists | Customers: Full; Items: View |
| SuiteBilling | Billing Accounts and Subscriptions: Full (Subscription flows only) |
| Revenue | Revenue Recognition Plans: Full (revenue recognition flow only) |
Steps 3 and 4 are needed only if you set up the NetSuite connection manually.
- Go to Setup > Users/Roles > Access Tokens > New. Select the Celigo integrator.io application, your integration user, and the new role.
- Copy the Token ID and Token Secret. NetSuite shows them only once.
Celigo requirements
- An integrator.io account with permission to install templates and create connections, and an endpoint subscription that covers Salesforce and NetSuite.
- Install the template in a sandbox environment first, and keep your sandbox and production connections separate.
Install the Salesforce Agentforce Revenue Management – NetSuite template
- Go to Marketplace
, select Salesforce, and find the Salesforce Agentforce Revenue Management - NetSuite (Beta) template.
- Select Preview, review the template's contents and ReadMe, and select Install now.
- Set up the Salesforce connection: for Account type, select Production or Sandbox; for Oauth2 flow type, select Refresh token; and select Save & authorize. Sign in as the integration user. For details, see Set up a connection to Salesforce with refresh token authentication.
- Set up the NetSuite connection with token-based authentication, either automatic or manual. For manual setup, enter the Account ID as NetSuite shows it (for example,
1234567, or1234567_SB1for a sandbox), and the Token ID and Token secret from Create the NetSuite integration role and access token. For details, see Set up a connection to NetSuite.
The template creates an integration with nine flows in four flow groups, plus the template settings. All flows are off, so no data moves until you finish setup and turn flows on. Before you turn on any flow, test both connections and make sure they show as online in the integration's Connections.
Link Salesforce products to NetSuite items
The template doesn't sync products. Every Salesforce product that can appear on a quote must have its NetSuite item internal ID in the product's NetSuite Id field (celigo_sfnsio__NetSuite_Id__c). Fill in this field with your existing product sync or a one-time data load before you turn on the quote flow. A quote line with an unlinked product fails; after you link the product, retry the error.
Tip: Accounts need no preparation. The Salesforce accounts to NetSuite customers flow creates the NetSuite customers and writes their IDs back to the accounts. Accounts that already have a NetSuite Id are skipped.
Configure the template settings
Go to the integration and select Settings. Settings are grouped into four sections: General for account-wide NetSuite defaults, and one section each for Sales Order, Subscription, and Financials. The Customer flow group has no settings, and flow schedules are set on each flow, not in Settings.
General settings
| Setting | Required | Description |
|---|---|---|
| NetSuite account uses multiple subsidiaries | OneWorld accounts | When this is on, new NetSuite customers are created in the Default NetSuite subsidiary (internal ID). Leave it off for an account with one subsidiary. Default: off. |
| Default NetSuite subsidiary (internal ID) | When NetSuite account uses multiple subsidiaries is on | The subsidiary where new NetSuite customers are created. If it's blank, the accounts flow stops with a configuration error. |
| Default NetSuite location (internal ID) | No | Applied to every sales order line created from a Salesforce quote. Leave it blank if your NetSuite account doesn't require a line location. |
| Default NetSuite tax code (internal ID) | No | Applied to every sales order line created from a Salesforce quote. Leave it blank to let NetSuite apply its own tax defaults. |
Sales Order settings
| Setting | Default | Description |
|---|---|---|
| Quote sync trigger status | Approved | Quotes reach NetSuite only after they enter this status. The options are Draft, Needs Review, In Review, Approved, Presented, and Accepted. |
| Order sync trigger status | Activated |
Orders update their NetSuite sales order only after they enter this status. |
| Allow order updates to approved sales orders | Off | When this is off, NetSuite sales orders already in Pending Fulfillment or later aren't changed by order status updates. |
| Order to sales order status mapping | Activated=Pending Fulfillment |
Semicolon-separated Salesforce status=NetSuite status pairs that the order status sync flow applies. The supported NetSuite statuses are Pending Approval and Pending Fulfillment. |
| Discount handling | Line-level discount rate | Line-level discount rate applies the quote line's discount percent to the NetSuite line rate. Separate discount line adds the line at full price, followed by a discount item line for general ledger tracking. |
| NetSuite discount item (internal ID) | Blank | Required when Discount handling is Separate discount line. The discount line is added directly after each discounted item line. If it's blank, the quote flow stops with a configuration error. |
Subscription settings
| Setting | Default | Description |
|---|---|---|
| Contract sync trigger status | Activated |
New contracts and renewal contracts create or update NetSuite subscriptions only after they enter this status. |
Financials settings
| Setting | Default | Description |
|---|---|---|
| Invoice status mapping | Open=Due;Paid In Full=Paid;Partially Applied=Partially Paid |
Semicolon-separated NetSuite status=Salesforce status pairs. Statuses that aren't mapped pass through unchanged. The Paid In Full and Partially Applied values also set the statuses that the payments flow applies. |
A payment marks the Salesforce invoice Paid only when nothing remains outstanding on the NetSuite invoice. Otherwise, the invoice becomes Partially Paid.
Configure the Salesforce Agentforce Revenue Management – NetSuite flows
Note: All flows are off when you install the template. After you configure the flows, turn each one on and run or schedule it in the order described in Turn on the flows in order. You may need additional field mapping for your Salesforce and NetSuite accounts.
Salesforce accounts to NetSuite customers
This flow creates NetSuite company customers for Salesforce accounts that aren't linked to NetSuite yet.
Export: Gets the Salesforce accounts changed since the last run that don't have a NetSuite Id yet.
Import: Creates or updates the NetSuite company customer, matched on External ID = Salesforce account ID, with the account name and phone. When NetSuite account uses multiple subsidiaries is on, the customer is created in the default subsidiary. The flow then writes the NetSuite customer ID back to the account, so the account isn't picked up again.
Before you begin: Install the Celigo NetSuite package. For a OneWorld account, configure the subsidiary settings in General settings. Run this flow first: the order and subscription flows need the link between the account and the customer.
Salesforce quotes to NetSuite sales orders
This flow creates a NetSuite sales order for each Salesforce quote that reaches the Quote sync trigger status.
Export: Gets the quotes and their line items changed since the last run that are in the trigger status. Quotes already linked to NetSuite, or with Skip Export To NetSuite selected, are skipped. The sales order lines use the Discount handling, location, and tax code settings.
Import: Creates or updates the NetSuite sales order, matched on External ID = quote ID. The customer is found by the account's external ID, and each item comes from the product's NetSuite Id. The quote name goes to the sales order's PO # and the quote description to its Memo. The flow then writes the sales order ID back to the quote, so the quote isn't sent again.
Before you begin: Run the Salesforce accounts to NetSuite customers flow, and link your Salesforce products to NetSuite items.
Setup instructions: If your NetSuite sales order form makes custom body fields mandatory, such as Order Type or End User, add a default mapping for each one: select Mapping on the Import NetSuite sales orders import in this flow, and on the Import NetSuite sales orders (Update) import in the Salesforce orders to NetSuite sales orders for status sync flow. Otherwise, every sales order write fails with a mandatory-field error.
Salesforce orders to NetSuite sales orders for status sync
When a Salesforce order reaches the Order sync trigger status, this flow moves its NetSuite sales order to the status set in Order to sales order status mapping.
Export: Gets the Salesforce orders linked to a NetSuite sales order, changed since the last run and in the trigger status.
Lookup: The Get NetSuite sales order lines step gets the sales order's lines and current status, so the update keeps the lines and follows the Allow order updates to approved sales orders setting.
Import: Sets the NetSuite sales order status and sends its existing lines again.
Before you begin: Run the Salesforce quotes to NetSuite sales orders flow. The order must have the NetSuite sales order ID in its NetSuite Id.
Important: Don't remove the Get NetSuite sales order lines step. A status update sends the whole sales order again, and without its lines NetSuite rejects the update.
Salesforce contracts to NetSuite subscriptions
This flow creates a NetSuite subscription for each contract that reaches the Contract sync trigger status. It requires NetSuite SuiteBilling.
Export: Gets the contracts changed since the last run that are in the trigger status and aren't linked to NetSuite yet.
Import: Creates or updates the NetSuite subscription under the account's NetSuite customer, matched on External ID = contract ID, with the contract's start and end dates. The flow then writes the subscription ID back to the contract.
Before you begin: Run the Salesforce accounts to NetSuite customers flow, and turn on SuiteBilling in NetSuite.
Setup instructions: The flow sends only the customer, start date, end date, and external ID, and doesn't create a NetSuite billing account. If your NetSuite account requires a billing account, subscription plan, or price book on new subscriptions, add those mappings to the Import NetSuite subscriptions step before you turn on the flow.
Salesforce assets to NetSuite subscriptions for amendments
This flow applies changes on Salesforce assets to their NetSuite subscription lines. It requires NetSuite SuiteBilling.
Export: Gets the assets linked to a NetSuite subscription line that changed since the last run. An asset with status Inactive is sent as a cancellation. Other changes are sent as updates with the current quantity and price.
Import: Updates the quantity and rate on the NetSuite subscription line, and sets its end date when the asset is canceled. Changes take effect from the next billing period.
Before you begin: Each asset must have its NetSuite subscription line ID in its NetSuite Id.
Salesforce contract renewals to NetSuite subscriptions
When a renewal contract (a contract with a previous contract) reaches the Contract sync trigger status, this flow extends the previous contract's NetSuite subscription to the renewal term. It requires NetSuite SuiteBilling.
Export: Gets the renewal contracts changed since the last run that are in the trigger status and aren't linked to NetSuite yet.
Import: Extends the previous contract's NetSuite subscription, matched on its external ID, to the renewal's start and end dates. The flow then links the renewal contract to the same NetSuite subscription.
Before you begin: Run the Salesforce contracts to NetSuite subscriptions flow, so the previous contract's subscription exists in NetSuite.
NetSuite invoices to Salesforce invoices
This flow creates or updates Salesforce invoices from open NetSuite invoices.
Export: Gets the open NetSuite invoices changed since the last run. The status is translated with the Invoice status mapping setting.
Import: Creates or updates the Salesforce invoice with its status, invoice date, and due date, matched on the NS-INV- key in Description.
Before you begin: The Salesforce org must have the ARM Invoice object.
NetSuite payments and credit memos to Salesforce invoices for status sync
This flow updates Salesforce invoices from NetSuite customer payments and creates Salesforce credit notes from NetSuite credit memos.
Export: Gets the NetSuite customer payments and credit memos changed since the last run.
Import: A payment sets the matching Salesforce invoice to Paid, or Partially Paid when a balance remains. A payment applied to several invoices updates each one. A credit memo creates or updates a Salesforce credit note with its amount and date, matched on the NS-CM- key in Description.
Before you begin: Run the NetSuite invoices to Salesforce invoices flow, so the invoices exist in Salesforce. The Salesforce org must have the ARM CreditNote object.
NetSuite revenue recognition plans to Salesforce revenue schedules
This flow creates or updates Salesforce revenue schedules from NetSuite revenue recognition plans. It requires NetSuite Advanced Revenue Management.
Export: Gets the NetSuite revenue recognition plans changed since the last run.
Import: Creates or updates the Salesforce revenue schedule with the amount, start date, and end date, matched on the NS-REV- key in Description.
Before you begin: Turn on NetSuite Advanced Revenue Management. The Salesforce org must have the ARM RevenueSchedule object.
Turn on the flows
Turn on the flows in order
Turn on one flow group at a time, in this order, and test each group before you move on. Later flows depend on the links that earlier flows write back.
- Customer — Salesforce accounts to NetSuite customers. Every other flow depends on the link between the account and the customer.
- Sales Order — Salesforce quotes to NetSuite sales orders, then Salesforce orders to NetSuite sales orders for status sync.
- Subscription (requires SuiteBilling) — Salesforce contracts to NetSuite subscriptions, then the amendments and renewals flows.
- Financials — NetSuite invoices to Salesforce invoices, then NetSuite payments and credit memos to Salesforce invoices for status sync, then NetSuite revenue recognition plans to Salesforce revenue schedules (requires NetSuite Advanced Revenue Management).
Load existing records
- A newly turned-on flow picks up only records changed after it's turned on, so existing records, such as open invoices, aren't picked up automatically.
- To load existing records, turn on the flow and select Run. Select Custom, set the Time zone, Start date, and Time to a point before the oldest record you want to load, and select Run. After that run, the schedule picks up new changes. For details, see Run your flow on-demand or on a schedule.
- A flow can return errors on its first run while the flows it depends on are still loading, for example quotes whose account isn't linked yet. After the flows they depend on finish loading, retry those errors.
Test each flow with sandbox records
Test each flow with one record in your sandboxes before you go live. To test one record, turn on the flow, run it with a custom start date, check the result, and turn the flow off again. A run without a start date on a new flow exports no records.
| Test | Expected result |
|---|---|
| Create a Salesforce account and run the accounts flow. | A NetSuite customer is created with External ID = the account ID, and the NetSuite ID is written back to the account. |
| Move a quote with two or more lines, one of them discounted, to the trigger status, and run the quote flow. | A NetSuite sales order is created with all lines, the correct items, and the discount applied per Discount handling. The sales order ID is written back to the quote. |
| Run the quote flow again with no changes. | No second sales order is created. |
| Activate the order and run the order status flow. | The NetSuite sales order moves to Pending Fulfillment. |
| Activate a contract (SuiteBilling accounts) and run the contracts flow. | A NetSuite subscription is created, and its ID is on the contract. |
| Create a NetSuite invoice for the customer and run the invoice flow. | A Salesforce invoice is created with the mapped status, invoice date, and due date. |
| Apply a partial payment in NetSuite and run the payments flow. | The Salesforce invoice shows Partially Paid. |
| Pay the invoice in full and run the payments flow again. | The Salesforce invoice shows Paid. |
| Edit a credit memo in NetSuite and run the payments flow twice. | One Salesforce credit note is updated, not duplicated. |
Troubleshoot the Salesforce Agentforce Revenue Management – NetSuite template
When every record fails, check the configuration: connections, missing defaults, or permissions. When some records fail, check the data, such as an unlinked product. When one record fails, review its retry data, fix the record, and retry it.
Mandatory-field errors in NetSuite
The error message starts with Please enter value(s) for: followed by the field name.
| Field in the error | Resolution |
|---|---|
| Subsidiary | For a OneWorld account, turn on NetSuite account uses multiple subsidiaries and set Default NetSuite subsidiary (internal ID) in General settings. |
| Location | Set Default NetSuite location (internal ID). The location must belong to the customer's subsidiary. |
| A custom body field, such as Order Type or End User | Your sales order form makes the field mandatory. Add a default mapping for it to both sales order imports. |
| Billing account, subscription plan, or price book | Add mappings for them to the Import NetSuite subscriptions step. See Salesforce contracts to NetSuite subscriptions. |
Configuration and feature errors
| Error or symptom | Cause and resolution |
|---|---|
"NetSuite account uses multiple subsidiaries" is checked but no default subsidiary is set |
Set Default NetSuite subsidiary (internal ID) in General settings. |
Discount handling is set to "Separate discount line" but no NetSuite discount item is set |
Set NetSuite discount item (internal ID) in Sales Order settings, or change Discount handling to Line-level discount rate. |
You must enter at least one line item for this transaction |
The Get NetSuite sales order lines step was removed from the order status flow, or changed. Restore it. |
The feature 'Subscription Billing' required … is not enabled |
SuiteBilling is off. Turn it on in NetSuite, or leave the Subscription flows off. |
entity type cannot be inserted: Invoice (or CreditNote or RevenueSchedule) |
The Salesforce org doesn't have Agentforce Revenue Management for that object. |
| A quote line error that names an empty item | The product on that line isn't linked to a NetSuite item. Fill in the product's NetSuite Id, then retry the error. |
Connection errors
| Error or symptom | Cause and resolution |
|---|---|
Invalid or unauthorized connection (Salesforce) |
The OAuth token expired or was revoked. Reauthorize the Salesforce connection. |
WSDL version requires Token Based Authentication |
The NetSuite connection uses basic authentication. Change it to token-based authentication. |
| Token-based authentication fails with a new token | Check that the role name has only letters and numbers, and that the token belongs to that role. |
A flow exports no records
Each flow picks up only records changed since its last successful run, and a new flow starts from the moment it's turned on. Run the flow with an earlier custom start date. Also check the trigger status settings: a quote, order, or contract that isn't in its trigger status is skipped without an error.
Records sync but the data is wrong
- A successful run with wrong data usually means a mapping reads a field that the source record doesn't have. Review a record's retry data to see what reached the import.
- Fix one mapping at a time, retry the errors (a retry uses the original data), and check the result before you move to the next error.
- Errors from Salesforce or NetSuite, such as validation rules, workflows, or governor limits, are shown exactly as the app returns them. Fix them in that app.
Salesforce ARM – NetSuite template limitations
| Area | Limitation |
|---|---|
| Beta validation | The flows, mappings, and scripts aren't validated end to end against live Salesforce ARM and NetSuite accounts. Expect to adjust mappings to your account's forms and required fields. |
| Subscriptions | New subscriptions are sent with the customer, dates, and external ID only. Add billing account, subscription plan, or price book mappings if your account requires them. |
| OneWorld | New customers are created only in the default subsidiary. Routing customers to different subsidiaries isn't supported. |
| Revenue recognition | The flow finds changed revenue recognition plans by their last-modified date. If it fails with a search or field error, submit a support ticket. As a workaround, set Export type to All on the Get NetSuite revenue recognition plans export, so it reads all plans on each run. |
| Matching keys | Invoices, credit notes, and revenue schedules are matched on Description in Salesforce (see How the template matches records). If a sync fails because Description can't be filtered in your org, submit a support ticket. |
| Product attributes | Quote lines map to NetSuite items through each product's NetSuite Id. ARM product attributes (QuoteLineDetail) aren't used to choose between item variants. |
| Scheduling | Flows that read from Salesforce run on a schedule (every 15 minutes by default), not in real time. |
| Amendments | The amendments flow treats an asset with status Inactive as a cancellation. Other asset changes are sent as updates with the current quantity and price, effective from the next billing period. |
| Historical data | Loading existing records is manual, one flow at a time with a custom start date. |