Sync updated Neto customers to Salesforce

UtilitiesDeveloperCRMMarketingSales

What it does

When a scheduled interval arrives, this automation fetches updated customers from Neto via HTTP. It checks that each customer record has changed and contains required fields before syncing to Salesforce.

Who it's for

Sales operations teams who need Neto customer changes reflected in Salesforce without manual entry.

How teams use this

Keep Salesforce customer data current

Run the sync every hour so Salesforce always reflects the latest customer information from Neto. Sales teams see up-to-date contact details and account status without delay.

Sync only complete customer records

The automation checks that email and first name are present before syncing. Only customers with complete data reach Salesforce, keeping the CRM clean.

Extend sync to include phone and address

Add conditions to check that phone number and billing address are also present before syncing a customer to Salesforce. This ensures richer customer profiles in the CRM.

Retarget sync to a different Neto environment

Point the HTTP request to a different Neto account or instance. The same sync logic applies, only the source system and endpoint change.

How it works

  1. Run on a schedule. At the specified interval, this automation wakes up and begins checking for customer updates in Neto.
  2. Query the sync table. Select rows from the neto_sync table in PostgreSQL to track which customers have already been processed in prior sync runs.
  3. Fetch updated customers via HTTP. Make an HTTP request to Neto to retrieve all customers whose records have been modified since the last sync run completed.
  4. Update each customer in Salesforce. For each Neto customer with a changed date and required fields like email and first name, update or create the matching account and contact in Salesforce.
  5. Log the sync completion. Insert a row in the neto_sync table in PostgreSQL to record that this batch of customers has been synced and when it occurred.