Sync Xero invoice numbers to Salesforce campaigns
AccountingCRMMarketingSalesUtilities
What it does
When a new or updated invoice arrives in Xero, this automation searches Salesforce for the matching Media Campaign. If found, it updates the campaign with the invoice number so both systems stay in sync.
Who it's for
Finance teams who need Xero invoices linked to Salesforce campaigns without manual entry.
Apps used
How teams use this
Link invoices to active campaigns
When Xero creates an invoice for a campaign, this automation finds the Salesforce record and adds the invoice number. Finance and sales both see the connection without extra steps.
Skip updates for closed campaigns
The automation only updates campaigns in stages other than Booked, so closed deals stay unchanged. This protects historical records from accidental overwrites.
Alert on missing campaign records
When an invoice reference does not match any Salesforce campaign, send an email so the team can check for data gaps. Add a recipient list or Slack channel to route alerts to the right person.
Batch process invoices in bulk
Run this automation on a batch of invoices from a date range so multiple campaigns are synced at once. Set the batch size and frequency to match your billing cycle.
How it works
- Monitor for new or updated invoices. Xero detects when an invoice is created or changed, and passes the reference number to the next step.
- Search for the matching campaign. Search Salesforce for a Media Campaign record that matches the invoice reference from Xero so the right record is updated.
- Update the campaign when stage allows. When a match is found and the stage is not Booked, update the Media Campaign in Salesforce with the invoice number from Xero.
- Alert if no campaign match found. Send an email alert when the campaign cannot be found in Salesforce so someone can investigate the mismatch between systems.