Sync Xero invoices to Salesforce accounts
AccountingCRMMarketingSalesUtilities
What it does
When someone creates or updates an invoice in Xero, this automation searches Salesforce for the matching account. It checks if a sales order exists and sends an email notification based on what it finds.
Who it's for
Accounting teams who need Xero invoices reflected in Salesforce without manual updates.
How teams use this
Sync existing customer invoices to Salesforce
When an invoice is created in Xero for an account that already exists in Salesforce, the automation finds the account and logs the invoice. The team sees all invoices tied to their customer records.
Alert when a sales order is missing
If the automation finds the Salesforce account but no sales order exists, it sends an email to notify the team. This catches invoices that may not have a corresponding opportunity or order.
Track high-value invoices in a sheet
Add a condition to only log invoices above a certain amount to the Google Sheet, or include the invoice total and due date. This keeps the team focused on high-value transactions.
Route invoices by account type
Extend the automation to check the account type in Salesforce and send notifications to different teams. Enterprise accounts go to one group and standard accounts to another.
How it works
- Monitor for new or updated invoices. A new invoice or an update to an existing invoice in Xero starts this automation.
- Find the matching account. Search Salesforce for an account that matches the invoice. The automation compares the account name from Xero to the account name in Salesforce to locate the correct record.
- Check for a sales order. Search Salesforce for a sales order linked to that account. If no sales order exists, the automation takes a different path and notifies the team.
- Capture the current time. Get the current time in the workspace timezone so the email includes when the invoice was processed and synced to Salesforce.
- Log the invoice to a spreadsheet. Add a row to a Google Sheet with the invoice details, account name, and timestamp so the team has a record of all synced invoices.