Sync Salesforce Closed-Won opportunities to QuickBooks invoices

CRMMarketingSalesAccountingFinance

What it does

When a Salesforce opportunity moves to Closed Won, this automation creates a QuickBooks invoice. It also creates any missing customers and products in QuickBooks so the invoice is complete.

Who it's for

Accounting teams who need invoices in QuickBooks generated automatically when sales closes a deal in Salesforce.

How teams use this

Automate invoice creation on close

When sales marks an opportunity Closed Won, the invoice appears in QuickBooks with all products and pricing from the quote. No manual entry is needed and accounting can bill immediately.

Sync only high-value deals

Retarget this automation to run only on opportunities above a certain amount so smaller deals stay in Salesforce. The same steps apply and only the trigger condition changes.

Add custom fields to the invoice

Include a condition to check a custom Salesforce field and set a corresponding QuickBooks invoice field based on that value. This requires adding a field mapping step before invoice creation.

Notify accounting of new invoices

Send a Slack message to the accounting channel each time an invoice is created in QuickBooks so the team knows a deal has closed. Only a notification step needs to be added.

How it works

  1. Detect Closed Won opportunity. Monitor Salesforce for an opportunity that moves to Closed Won stage and has not yet synced to QuickBooks.
  2. Gather the opportunity details. Retrieve the related Salesforce account, contact, quote, and quote line items so all invoice data is available.
  3. Check for the customer. Search QuickBooks for a customer matching the Salesforce account. Create the customer in QuickBooks if it does not exist.
  4. Sync products as items. For each product on the quote, search QuickBooks for a matching item. Create any missing items so line items can be added.
  5. Create the invoice. Create the QuickBooks invoice with the customer and all line items from the quote, then mark the opportunity as synced.