Sync Salesforce Closed-Won opportunity to QuickBooks invoice

CRMMarketingSalesUtilitiesAccountingFinance

What it does

When a Salesforce opportunity moves to Closed-Won, this automation creates a QuickBooks invoice. It adds the customer and product items to QuickBooks if they do not exist, then generates the invoice with line items from the opportunity.

Who it's for

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

How teams use this

Sync closed deals to accounting

Move Closed-Won opportunities to QuickBooks invoices automatically so the accounting team has up-to-date records without manual entry. The flow handles missing customers and products.

Route invoices by sales region

Filter opportunities by a custom region field in Salesforce so only deals from a specific territory create invoices in QuickBooks. This keeps invoice creation aligned with regional accounting workflows.

Require approval before invoice sync

Add a condition to check for an Approved field on the opportunity before creating the invoice. Only invoices marked approved will sync to QuickBooks.

Log invoice creation for audit

Set up logging to record each invoice created in QuickBooks, including the customer name and total amount. This creates an audit trail for compliance and troubleshooting.

How it works

  1. Detect Closed-Won opportunity. Monitor Salesforce for an opportunity that moves to Closed-Won stage and has line items attached.
  2. Retrieve the account and contact. Fetch the associated Salesforce account and contact linked to the opportunity so customer details are ready.
  3. Search for or create the customer. Search QuickBooks for a customer matching the Salesforce account. Create the customer in QuickBooks if it does not exist.
  4. Search for or create product items. Search QuickBooks for each product from the opportunity line items. Create any missing items in QuickBooks before invoice generation.
  5. Create the invoice. Generate the QuickBooks invoice with the customer and line items from the Salesforce opportunity.