Sync Salesforce account updates to secondary instance

CRMMarketingSalesUtilities

What it does

When an account is created or updated in Salesforce, this automation checks if the Agency ID equals 101 and syncing is enabled. It searches the secondary Salesforce instance and updates or notifies based on what it finds.

Who it's for

Sales operations teams who maintain account data across multiple Salesforce instances.

Apps used

How teams use this

Keep secondary Salesforce in sync

When an account with Agency ID 101 updates in the primary instance, this automation finds and updates the matching record in the secondary instance so both systems stay current.

Alert on missing secondary records

If an account update has no match in the secondary instance, the automation sends an email so the team can investigate and create the missing record manually.

Filter by different Agency IDs

Modify the condition to sync accounts with other Agency ID values or add additional fields to the search criteria so different account types sync to the secondary instance.

How it works

  1. Account is created or updated. An account record changes in Salesforce, including new accounts and updates to existing ones.
  2. Check sync conditions. Verify that syncing is enabled and the Agency ID field equals 101 before proceeding with the secondary instance update.
  3. Search secondary instance for matching accounts. Query the secondary Salesforce instance in batch to find accounts that match the primary instance record.
  4. Update or notify based on results. If one match is found, update that account in the secondary instance. If no matches exist, send an email notification.