Sync SQL Server customers to NetSuite on schedule

Recipe ToolsMarketingDatabaseAccountingERPCRMEcommerceFinancial ManagementHR management

What it does

When a specified schedule triggers every 5 minutes, this automation runs custom SQL in SQL Server to find rows. For each row, it searches NetSuite for that customer and creates the record when none exists.

Who it's for

Finance teams who need to keep NetSuite customers in sync with SQL Server without manual updates.

How teams use this

Sync new SQL Server customers nightly

Run the automation every 5 minutes to catch new customers from SQL Server and add them to NetSuite. The team can focus on other work instead of entering customers in both systems.

Prevent duplicate customer records

Search NetSuite before creating so the same customer is never added twice. This keeps data clean and avoids reconciliation issues across both systems.

Filter customers by region or status

Modify the custom SQL query to only select customers that match a specific region or status code. This lets you control which records sync to NetSuite.

Add customer contact details on sync

Include phone, address, or billing contact fields in the SQL query so NetSuite customers are created with complete information. The automation maps those fields to NetSuite.

How it works

  1. Run on a specified schedule. The automation starts every 5 minutes on the schedule someone sets, then moves to the next step to query SQL Server.
  2. Execute custom SQL query. Run custom SQL in SQL Server to select rows that match the criteria, then process each row from the batch in the following steps.
  3. Search for the customer. Search NetSuite for a customer with that internal ID to check if the record already exists in the system before proceeding.
  4. Create customer when missing. When the internal ID is not found in NetSuite, create the customer record so both systems stay in sync with the same data.