Sync contact IDs between Salesforce instances
CRMMarketingSales
What it does
When a contact is created or updated in Salesforce, this automation searches Salesforce Secondary for a matching contact by email. If found and marked as Avatara, it syncs the Sapper Record Id back to the primary contact.
Who it's for
Sales operations teams who maintain contact records across multiple Salesforce instances and need IDs synced automatically.
Apps used
- Salesforce
- Salesforce Secondary
How teams use this
Populate missing Sapper IDs on contacts
When a contact is added to Salesforce without a Sapper Record Id, this automation finds the matching record in Salesforce Secondary and syncs the ID back to the primary instance automatically.
Sync IDs only for Avatara segment contacts
Ensure that only contacts marked as Avatara in the Sapper Client Segment receive the ID sync, keeping other segments unaffected and maintaining data integrity across systems.
Extend sync to include additional segments
Add more segment conditions to sync Sapper Record IDs for other client segments beyond Avatara by including additional segment values in the automation logic.
How it works
- Monitor contact changes in Salesforce. When a contact is created or updated in Salesforce, the automation checks if the Sapper Record Id field is already populated on that contact.
- Search Salesforce Secondary by email. If the Sapper Record Id is missing, search Salesforce Secondary for a contact with a matching email address to locate the corresponding record there.
- Retrieve contact details from secondary. Get the full contact details from Salesforce Secondary, including the Sapper Client Segment field, to verify if it equals Avatara before proceeding.
- Update primary contact with Sapper ID. When the email matches and the Sapper Client Segment is Avatara, update the Salesforce contact record with the Sapper Record Id from the secondary instance.