Sync approved Xero invoices to Salesforce

AccountingUtilitiesCRMMarketingSales

What it does

When an invoice is approved in Xero but not yet sent to the contact, this automation syncs it to Salesforce. The sales team sees the latest billing record without manual entry.

Who it's for

Accounting teams who need approved invoices reflected in Salesforce automatically.

How teams use this

Keep Salesforce invoices current

Sync approved Xero invoices to Salesforce automatically so the sales team always sees the latest billing without checking Xero. The process runs on its own each time an invoice is approved.

Route invoices by account type

Filter invoices by account status in Salesforce so only those tied to active customers sync over. This keeps the invoice list focused on accounts the team is actively managing.

Notify sales of new billing

Add a Slack notification when the invoice syncs so the sales team knows a customer has been billed. This keeps revenue conversations in sync with billing events.

Exclude draft invoices from sync

Set a condition to only sync invoices with status AUTHORISED and exclude any in draft state. This ensures only finalized billing records reach Salesforce.

How it works

  1. Monitor for approved invoices. Watch Xero for new or updated invoices that are approved and not yet sent to the contact.
  2. Verify invoice type and status. Check that the invoice type contains ACCREC and the status contains AUTHORISED to confirm it meets sync criteria.
  3. Capture the current time. Get the current time in the workspace timezone so the sync event is timestamped for audit and reporting purposes.
  4. Find the matching account. Search Salesforce for the account by name so the invoice links to the correct customer record.
  5. Create the invoice record. Create the invoice in Salesforce with the approved details from Xero so the sales team sees the billing update.