Sync Salesforce accounts to Xero contacts
CRMMarketingAccountingSales Enablement
What it does
When a Salesforce account is created or updated, this automation searches Xero for a matching contact. If found, the account is updated with the Xero Contact ID so the records stay linked.
Who it's for
Accounting teams who need Salesforce accounts linked to Xero contacts without manual lookup.
Apps used
How teams use this
Link new accounts to existing Xero contacts
When someone creates a Salesforce account, this automation finds the matching Xero contact and links them by ID. The account is enriched without manual work.
Prevent duplicate Xero contacts
Before a new Xero contact is created from Salesforce, the automation searches first. This keeps the contact list clean and avoids sync conflicts.
Sync only flagged accounts
Add a condition to sync only accounts where a Sync With Xero checkbox is checked. This gives teams control over which accounts flow to Xero.
How it works
- Monitor account changes in Salesforce. Detect when an account is created or updated in Salesforce and check if the Sync With Xero field is true and Refresh from Xero is false.
- Search Xero for matching contact. Query Xero to find a contact that matches the Salesforce account details. This step runs only when the account has no Xero Contact ID present.
- Update account with contact ID. Update the Salesforce account record with the Xero Contact ID from the search result so the two records remain connected.