Create Xero contacts from Salesforce closed won opportunities
CRMMarketingSalesAccounting
What it does
When someone marks an opportunity as closed won in Salesforce, this automation searches Xero for that contact. It creates the contact when none exists, then generates an invoice in Xero so the sale is recorded.
Who it's for
Accounting teams who need Xero contacts and invoices synced from Salesforce without manual entry.
Apps used
How teams use this
Sync closed deals to accounting automatically
When a deal closes in Salesforce, the contact and invoice appear in Xero without manual data entry. The sales and accounting teams stay in sync with no extra steps.
Route invoices by account type
Add a condition to check the account type in Salesforce before creating the Xero invoice, so only certain deals trigger invoicing. This keeps the flow focused on the deals that need it.
Sync from sales team workflows
Run this automation from a Salesforce workflow so the sales team can mark an opportunity closed won and know the contact and invoice are created in Xero without leaving Salesforce.
Include custom fields on contact
Map additional Salesforce fields like phone or billing address to the Xero contact so the record is complete when created. Only the field mapping needs to be added.
How it works
- Opportunity marked closed won. An opportunity is updated to closed won status in Salesforce, which starts this automation.
- Fetch account and contact details. Retrieve the account details, opportunity contact roles, and contact information from Salesforce so the contact can be created in Xero with the right data.
- Search for existing contact. Search Xero to check if a contact with that name already exists, so a duplicate record is not created.
- Create contact if missing. When the contact is not found in Xero, create it with the details from Salesforce so the account is ready for invoicing.
- Generate invoice in Xero. Create an invoice in Xero tied to the new contact so the closed won opportunity is recorded as a sale in the accounting system.