Sync Salesforce account deltas using lookup tables

Recipe ToolsCRMMarketing

What it does

When a scheduled interval triggers, this automation searches Salesforce for accounts. It compares each account against a lookup table to identify new records, changed records, and unchanged records.

Who it's for

Data and analytics teams who need to track Salesforce account changes without manual review.

How teams use this

Track new accounts added to Salesforce

Run the automation daily to find accounts that do not exist in the lookup table yet. The team gets a list of new accounts so they can sync them to downstream systems or trigger follow-up workflows.

Alert when account details change

Compare the mapped account data against the lookup table to detect when fields like name, industry, or revenue have been updated in Salesforce. Only changed accounts are flagged so the team focuses on what matters.

Sync deltas to a data warehouse

Extend this automation to send new and changed accounts to a data warehouse or analytics platform. Add a filter condition after the lookup table check to route only delta records to the target system.

Maintain account history over time

Retarget this automation to run hourly instead of daily so the lookup table captures more frequent changes. The team builds a complete audit trail of account modifications without manual logging.

How it works

  1. Run on a schedule. This automation runs at a specified interval to check for account changes in Salesforce.
  2. Search Salesforce accounts. Query Salesforce for all accounts using a SOQL WHERE clause, then process each result in a batch.
  3. Map account data to common schema. Transform each Salesforce account into a standardized Account Info format so comparisons are consistent across systems.
  4. Check the lookup table for matches. Search the Accounts lookup table for an entry matching the current account. If none exists, add it as a new record. If one exists and the data differs, flag it as changed.