Sync Salesforce records from a lookup table every 5 minutes

Recipe ToolsMarketingCRMUtilitiesDatabase

What it does

When the clock triggers every 5 minutes, this automation queries a lookup table and syncs matching Salesforce records. It transforms a string of IDs into individual records and updates Salesforce based on the lookup data.

Who it's for

Sales operations teams who need to keep Salesforce in sync with external lookup data on a regular schedule.

How teams use this

Keep Salesforce synced with external data

Run the lookup every 5 minutes to pull fresh data and update Salesforce records automatically. The team manages both systems as one without manual intervention.

Sync only records that changed

Add a condition to check if the lookup table data differs from the Salesforce record before updating. This requires a comparison step to filter which records need syncing.

Alert the team on sync failures

Include a notification step that sends a message when records fail to update. The team can then investigate and fix the issue right away.

Extend sync to other systems

Adapt this automation to sync the same lookup table data to HubSpot or another CRM. Only the target app changes while the lookup and transformation logic stays the same.

How it works

  1. Run every 5 minutes. The Clock triggers this automation on a 5-minute interval so lookup table changes are synced to Salesforce regularly without manual work.
  2. Query the lookup table. Retrieve the list of IDs and associated data from the Lookup Table to identify which Salesforce records need updating.
  3. Transform IDs into a list. Convert the string of comma-separated IDs into individual list items using Workato Smart List so each one can be processed separately.
  4. Update matching Salesforce records. For each ID in the list, find the corresponding Salesforce record and sync the lookup table data to keep both systems aligned.
  5. Log results to the job report. Record which records were updated and any errors using Workato App so the team can monitor the sync health.