Update Salesforce invoice when Xero invoice is approved

AccountingCRMMarketingSalesUtilities

What it does

When a new or updated invoice appears in Xero, this automation searches Salesforce for the matching account and sales order. It updates the Salesforce invoice record and sends email notifications so the team knows the books are in sync.

Who it's for

Accounting teams who need Salesforce invoice records to stay current with Xero without manual updates.

How teams use this

Keep Salesforce invoices current with Xero

When an invoice is created or changed in Xero, the matching Salesforce record updates automatically so the sales and accounting teams see the same data without manual entry.

Alert sales when invoices sync

Route the confirmation email to the sales team instead of accounting so they know when a deal has moved to the invoicing stage in both systems.

Include invoice amount in the notification

Add the invoice total and due date to the email so the team has key details without opening Xero or Salesforce to check the record.

Sync only approved invoices

Add a condition to filter invoices by status so only approved invoices update Salesforce, keeping draft or pending invoices out of the CRM until they are finalized.

How it works

  1. Monitor for new or updated invoices. A new invoice or an update to an existing invoice in Xero starts this automation so the Salesforce record can be refreshed.
  2. Find the matching account. Search Salesforce for the account that corresponds to the Xero invoice so the right record is updated in the CRM.
  3. Find the related sales order. Search Salesforce for the sales order linked to the invoice so the full transaction history is available in one place.
  4. Update the invoice record. Update the Salesforce invoice with the current details from Xero so the CRM reflects the latest invoice status and amounts.
  5. Send confirmation to the team. Send email to notify the team that the Salesforce invoice has been updated and is now in sync with Xero.