Sync Salesforce Closed-Won deals to QuickBooks invoices

CRMMarketingSalesAccountingFinance

What it does

When a Salesforce opportunity moves to Closed Won, this automation searches QuickBooks for the customer and creates one if needed. It then builds an invoice with the opportunity products as line items, creating all missing data so the full record lands in QuickBooks ready to use.

Who it's for

Accounting teams who need Closed-Won deals to flow into QuickBooks without manual entry.

How teams use this

Move deals to invoices automatically

Closed-Won opportunities become QuickBooks invoices with all required customer and product data, eliminating manual entry and sync delays between systems.

Route invoices by customer type

Add a condition to check the account type in Salesforce and only sync invoices for specific customer segments. Other deals stay in Salesforce until manually approved.

Sync to a different QuickBooks company

Change the QuickBooks connection to a second company file so deals from a different Salesforce org or region flow to the correct books.

Include custom fields on the invoice

Map Salesforce custom fields like project code or cost center to the QuickBooks invoice so finance can filter and report by those dimensions.

How it works

  1. Detect a Closed-Won opportunity. When an opportunity in Salesforce moves to Closed Won stage, this automation starts and pulls the account, products, and line items from that opportunity.
  2. Search for the customer in QuickBooks. Search QuickBooks for a customer matching the Salesforce account so the invoice links to the right customer record.
  3. Create the customer if missing. If no customer exists in QuickBooks, create one from the Salesforce account data so the invoice has a valid customer.
  4. Create the invoice with line items. Create a QuickBooks sales invoice with the opportunity products as line items, or a single line if the opportunity has no products.
  5. Store the invoice ID in Salesforce. Update the opportunity record with the QuickBooks invoice ID so the two systems stay linked and both teams see the same data.