Sync Salesforce Opportunities, Accounts, and Contacts
CRMMarketingRecipe Tools
What it does
When a new or updated Opportunity, Account, or Contact appears in Salesforce, this automation searches Salesforce Secondary for matching records and upserts them. The sync skips records modified by a specific user to prevent duplicate updates.
Who it's for
Sales operations teams who maintain data across multiple Salesforce instances.
Apps used
- Salesforce
- Salesforce Secondary
- Lookup tables by Workato
- Callable recipes by Workato
- Email by Workato
How teams use this
Keep Accounts in sync across instances
When an Account is updated in Salesforce, the automation finds or creates the matching Account in Salesforce Secondary with the same name and fields. The team avoids manual data entry and both systems stay current.
Sync Opportunities with Partner links
When an Opportunity with a Partner field is created in Salesforce, this automation searches Salesforce Secondary for the Partner record and upserts the Opportunity with that relationship intact. No Partner data is lost in the sync.
Exclude internal system updates
Add a condition to filter records modified by specific user IDs so internal processes do not trigger unnecessary syncs. Only genuine business changes flow between instances.
Sync Contacts with Account hierarchy
Extend the automation to include Contacts and check that their parent Account exists in Salesforce Secondary before upserting. Set the Contact to link to the correct Account in the secondary instance.
How it works
- Monitor for new or updated records. Detect when an Opportunity, Account, or Contact is created or modified in Salesforce, then check the Record Type ID and Last Modified By ID to filter out internal system changes.
- Search Salesforce Secondary for the record. Query Salesforce Secondary to find a matching Account, Opportunity, or Contact by name or reference field so the sync knows whether to create or update.
- Check for Partner relationship. Look up whether the record has a Partner field present. If yes, search Salesforce Secondary for the Partner record to link it during the upsert.
- Upsert the record to Salesforce Secondary. Create or update the Opportunity, Account, or Contact in Salesforce Secondary with all fields from the source record, including any Partner relationship found in the lookup.
- Log the sync result. Record the outcome of the upsert in Workato Service so the team can audit which records synced and troubleshoot any failures across both Salesforce instances.