Sync Salesforce payments to Xero invoices
CRMMarketingSalesAccounting
What it does
When someone creates a payment in Salesforce marked as Payment Received, this automation searches Xero for the matching invoice. It creates the payment record in Xero so both systems stay in sync without manual entry.
Who it's for
Accounting teams who need Salesforce payments reflected in Xero automatically.
Apps used
How teams use this
Eliminate manual payment entry in Xero
When someone creates a payment in Salesforce, it automatically appears in Xero matched to the correct invoice. The accounting team no longer needs to enter payments twice.
Route payments by invoice status
Extend this automation to only sync payments for invoices marked as approved in Xero. Add a condition to check invoice status before creating the payment record.
Sync payments from a different Salesforce object
Retarget this automation to pull payments from a custom Salesforce object instead of the standard payment object. The flow and Xero steps remain unchanged.
Log all synced payments for audit trail
Include a step that records each synced payment in a spreadsheet or database for compliance. This creates a complete audit trail of all payments moved between systems.
How it works
- Detect a new payment in Salesforce. When a payment is created in Salesforce with type Payment Received and has not yet been imported into Xero, this automation starts.
- Retrieve the opportunity and account details. Fetch the opportunity and account information from Salesforce so the payment can be matched to the correct Xero invoice and contact.
- Find the matching invoice in Xero. Search Xero for the contact and invoice that correspond to the Salesforce payment so the payment is applied to the right bill.
- Create the payment in Xero. When an invoice is found, create the payment record in Xero with the same amount and details from Salesforce so both systems match.
- Mark the payment as imported. Update the Salesforce payment record to show it has been imported into Xero so this automation does not run again for that payment.