Sync Salesforce Opportunity to Xero Purchase Order and Invoice

CRMMarketingProductivityAccountingRecipe Tools

What it does

When an Opportunity stage changes to Converted to Order in Salesforce, this automation retrieves the Opportunity and Account details. It creates a Purchase Order and Invoice in Xero, then sends a Gmail notification so the team knows the order is ready.

Who it's for

Finance and Sales operations teams who need to sync closed deals from Salesforce to Xero without manual data entry.

How teams use this

Automate order-to-cash from Salesforce

Close a deal in Salesforce and have the Purchase Order and Invoice appear in Xero instantly, eliminating manual entry and reducing errors in the order-to-cash cycle.

Notify fulfillment team of new orders

Send the Gmail notification to a fulfillment channel so the team sees new orders from Salesforce without checking Xero separately.

Include line items and custom fields

Add product line items and custom fields from the Salesforce Opportunity to the Xero Purchase Order and Invoice so all order details sync automatically.

Route orders by customer type

Check the Account type in Salesforce and route the Xero Purchase Order to different email recipients based on whether the customer is wholesale or retail.

How it works

  1. Monitor Opportunity stage change. Watch for an Opportunity in Salesforce where the stage changes to Converted to Order, which signals a deal is closed and ready for fulfillment.
  2. Retrieve Opportunity and Account details. Fetch the Opportunity record and its related Account information from Salesforce so all customer and order data is available for Xero.
  3. Create Purchase Order and Invoice. Generate a Purchase Order and Invoice in Xero using the Opportunity and Account details, syncing the order data to the accounting system.
  4. Send confirmation email. Email the team via Gmail to confirm the Purchase Order and Invoice were created in Xero so they can proceed with fulfillment.