Sync Salesforce contacts every 5 minutes

Recipe ToolsMarketingCRMData ParserUtilities

What it does

When the clock triggers every 5 minutes, this automation searches Salesforce for contacts. It composes them into a CSV file, then creates or upserts those contacts in bulk, stopping if an error occurs.

Who it's for

Sales operations teams who need to keep Salesforce contacts synchronized on a frequent schedule.

How teams use this

Keep contact records current hourly

Run this automation every 5 minutes so Salesforce contacts stay synchronized with source data throughout the day. The team always sees the latest information without manual updates.

Sync contacts to a different Salesforce org

Point the search and upsert steps to another Salesforce instance so contacts flow between organizations on the same schedule. Only the connection credentials change.

Filter contacts by region before syncing

Add a condition to the search step so only contacts from a specific region are included in the CSV and synced to Salesforce. This keeps the bulk operation focused on relevant records.

How it works

  1. Start the sync every 5 minutes. The automation runs on a 5-minute interval so contact data stays current in Salesforce without manual intervention.
  2. Search for contacts in Salesforce. Query Salesforce to retrieve all contacts that need to be synced, processing them in batches for efficiency.
  3. Compose contacts into CSV format. Format the contact data into a CSV file structure so Salesforce can process the records in bulk operations.
  4. Create or upsert contacts in bulk. Load the CSV file into Salesforce to create new contacts or update existing ones in batches. If an error occurs, the job stops without retrying.