Sync Salesforce Closed-Won opportunity to QuickBooks invoice

CRMMarketingSalesAccountingFinanceUtilities

What it does

When a Salesforce opportunity moves to Closed-Won stage with line items and no invoice number, this automation searches QuickBooks for the customer and products. It creates missing customers and items, then generates the invoice with all line items so the sale flows into accounting.

Who it's for

Accounting teams who need Closed-Won deals to become QuickBooks invoices without manual entry.

How teams use this

Move Closed-Won deals to accounting

When an opportunity reaches Closed-Won with products and an amount, the invoice is created in QuickBooks with all line items and the customer. No manual data entry is needed.

Sync invoices to a revenue system

Route the created QuickBooks invoice to a revenue recognition or ERP system by adding a step after invoice creation. The flow stays the same and only the destination changes.

Filter by opportunity amount or region

Add a condition to only create invoices when the opportunity amount exceeds a threshold or the account belongs to a specific region. This narrows which deals flow to QuickBooks.

Include custom fields on the invoice

Set Salesforce custom fields like project code or cost center on the QuickBooks invoice so accounting has full context. The automation structure does not change.

How it works

  1. Detect Closed-Won opportunity. Monitor Salesforce for an opportunity that moves to Closed-Won stage, has line items, an amount greater than zero, and no invoice number yet.
  2. Fetch the account and contact. Retrieve the associated Salesforce account and the Deliver To contact so their details are ready for QuickBooks.
  3. Search for the customer. Search QuickBooks for a customer matching the Salesforce account so a duplicate record is not created.
  4. Create customer and items if needed. Create the customer in QuickBooks if it does not exist, and create any products from the opportunity as items if they are missing.
  5. Create the invoice. Generate the QuickBooks invoice with the customer and all line items from the opportunity, then link the invoice number back to Salesforce.