Create Xero invoice from Salesforce Closed-Won opportunity
CRMMarketingAccounting
What it does
When a Salesforce opportunity moves to Closed-Won, this automation creates an invoice in Xero with the opportunity products as line items. It also creates the contact and items in Xero if they do not already exist.
Who it's for
Accounting teams who need invoices in Xero to match closed deals in Salesforce without manual entry.
Apps used
How teams use this
Invoice customers when deals close
Move Closed-Won opportunities to Xero as invoices with all line items and contact details filled in automatically. The accounting team no longer needs to re-enter the deal data.
Sync only deals above a certain value
Retarget this automation to invoice only opportunities that exceed a revenue threshold so smaller deals stay out of Xero. The same steps run for qualifying deals.
Add custom fields to Xero invoices
Extend the automation to map Salesforce custom fields like project code or cost center to the Xero invoice so billing records include all required metadata.
Notify the team when invoices are created
Include a step to send a Slack message to the accounting channel each time an invoice is created in Xero from a Closed-Won deal.
How it works
- Detect Closed-Won opportunity. Monitor Salesforce for an opportunity that moves to Closed-Won status and has not yet created a Xero invoice.
- Search for the contact. Search Xero for a contact that matches the Salesforce account and contact information so a duplicate is not created.
- Create contact if missing. Create the contact in Xero using the Salesforce account and contact details when no match is found in the search.
- Create items and invoice. Create line items in Xero for each opportunity product, then create the invoice and attach those items to it.