Sync NetSuite customers to Salesforce accounts & contacts with auto upserts
UnknownWhat this workflow does
This workflow has 16 nodes and runs on a schedule (every day). Along the way it connects Salesforce and Netsuite Rest (community).
How it runs
Trigger: On a schedule (every day).
- Init Offset (Code): runs custom JavaScript code
- Has More Records? (If): checks a condition and branches into true / false
- Retrieve Paging Offset and LastExportDate (Code): runs custom JavaScript code
- Update LastExportDate (Code): runs custom JavaScript code
- NS: Customer - Get All records (Net Suite Rest): work with customer
- Split Customers Array (Split Out): splits a list into separate items
- NS: Customer - Get record (Net Suite Rest): get /customer/{id}
- Is Company? (If): checks a condition and branches into true / false
- SF: Create or Update Company Account (Salesforce): create or update (account)
- SF: Create or Update Person's Account (Salesforce): create or update (account)
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-netsuite-rest is verified or supports 3.0 (used in NS: Customer - Get record, NS: Customer - Get Delta records, NS: Customer - Get All records).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- If
n8n-nodes-base.if - Net Suite Rest
n8n-nodes-netsuite-rest.netSuiteRest - Salesforce
n8n-nodes-base.salesforce - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Short Description Automatically exports customer records from NetSuite and syncs them into Salesforce — creating or updating Accounts and Contacts depending on whether the NetSuite record represents a company or an individual. Who is this for / Use case This…