Sync Salesforce invoices to Xero

CRMMarketingSalesAccounting

What it does

When a new invoice is created in Salesforce, this automation retrieves account and contact details. It then creates or updates the invoice and line items in Xero so billing stays in sync across both systems.

Who it's for

Accounting teams who need invoices synced from Salesforce to Xero automatically.

How teams use this

Sync invoices without manual data entry

New Salesforce invoices flow to Xero with account, contact, and line item details intact. The team stops copying invoice data between systems.

Route invoices by customer type

Filter which invoices sync based on account type or status in Salesforce so only billable invoices reach Xero. Other records stay in Salesforce only.

Sync to a different accounting system

Replace Xero with NetSuite or QuickBooks Online to send Salesforce invoices to the accounting platform your company uses instead.

Include custom fields on invoices

Add a condition to check for custom fields in Salesforce and set those values on the Xero invoice so billing codes and cost centers sync too.

How it works

  1. Monitor for new Salesforce invoices. When a new invoice is created in Salesforce, the automation starts and retrieves the related account and contact information from Salesforce.
  2. Get account details from Salesforce. Retrieve the full account record from Salesforce including name, billing address, and other details needed for the Xero invoice.
  3. Search for the contact in Xero. Look up the contact in Xero by name to determine whether to create a new contact or use an existing one for the invoice.
  4. Create the contact if missing. If the contact does not exist in Xero, create it with the details from Salesforce so the invoice has a valid recipient in Xero.
  5. Create invoice with line items in Xero. Create the invoice in Xero and add each line item from Salesforce one at a time, matching quantities, amounts, and descriptions.