Sync Salesforce invoices to QuickBooks conditionally

CRMMarketingSalesAccounting

What it does

When a custom invoice is updated in Salesforce, this automation updates its Notes field based on status. If the invoice has been sent and not yet synced, it creates a corresponding invoice in QuickBooks and links the records.

Who it's for

Accounting teams who need invoices synced from Salesforce to QuickBooks without manual data entry.

How teams use this

Sync sent invoices to QuickBooks automatically

When an invoice is marked as sent in Salesforce, this automation creates it in QuickBooks and links the two records. The team no longer manually enters invoice data across systems.

Route invoices by customer type

Adjust the condition to only sync invoices for specific customer segments or regions to QuickBooks. This lets different teams use the same flow for their own customer base.

Check for customer before creating invoice

Add a step to search QuickBooks for the customer first. If the customer does not exist, either stop or create the customer on the fly before the invoice is created.

Send confirmation email at sync completion

Include an email step after the QuickBooks invoice is created to notify the team that the invoice has been synced. Set a filter so only certain invoices trigger the notification.

How it works

  1. Monitor for updated invoices. Watch for new or updated custom invoice objects in Salesforce, looking back as far as needed to catch invoices that should sync.
  2. Update the invoice status notes. Update the Notes field on the Salesforce invoice based on its current status to track progress through this automation.
  3. Check if already synced to QuickBooks. Examine the QuickBooks Invoice ID field on the Salesforce record. If empty, proceed to create the invoice in QuickBooks. If populated, stop.
  4. Create the invoice in QuickBooks. Retrieve the account details from Salesforce and create a sales invoice with a single line item in QuickBooks Online for that customer.
  5. Link the QuickBooks invoice ID. Update the Salesforce invoice record with the QuickBooks invoice ID so it is not created twice in either system.