Create Xero invoice from Salesforce confirmed opportunity
CRMMarketingSalesAccounting
What it does
When a Salesforce opportunity reaches Confirmed stage and is marked invoiced with a synced quote, this automation creates an invoice in Xero. It also creates the contact and items in Xero if they do not already exist, then adds the opportunity products as line items.
Who it's for
Accounting teams who need invoices in Xero to match confirmed opportunities in Salesforce without manual entry.
Apps used
How teams use this
Sync confirmed deals to billing
Move a Salesforce opportunity to Xero as an invoice once it reaches Confirmed stage and is marked invoiced. The contact and products sync automatically so nothing is entered twice.
Route invoices by opportunity owner
Extend this automation to filter opportunities by owner or region so invoices land in the correct Xero account or cost center. Only opportunities matching the condition create invoices.
Update existing Xero invoices
Use this flow for opportunities that already have a Xero ID to update the invoice instead of creating a new one. The condition checks if Xero ID is present before proceeding.
Include custom fields on invoices
Add Salesforce custom fields like project code or cost center to the Xero invoice line items. Map those fields during the item creation step so they appear on every invoice.
How it works
- Detect confirmed and invoiced opportunity. Monitor Salesforce for opportunities at stage Confirmed that are marked invoiced and have a synced quote, with no Xero ID yet.
- Retrieve the associated account. Fetch the Salesforce account linked to the opportunity so contact details are available for Xero.
- Search or create the contact. Search Xero for the contact by name. If not found, create it in Xero with the account details from Salesforce.
- Create items and invoice. Add the opportunity products as items in Xero if missing, calculate discounts and tax type manually, then create the invoice with line items.