Create a QuickBooks invoice from Salesforce closed won

CRMMarketingSalesAccounting

What it does

When an opportunity is created or updated in Salesforce, this automation searches QuickBooks for the related customer. If found, it builds a multi-line invoice from the opportunity products and links it back to Salesforce.

Who it's for

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

How teams use this

Invoice closed won deals automatically

When an opportunity reaches closed won in Salesforce, the automation finds the customer in QuickBooks and creates a complete invoice with all line items from the deal. No manual invoice entry is needed.

Route invoices to a different system

Send the same Salesforce opportunity data to a different accounting platform instead of QuickBooks by replacing the invoice creation step. The flow and Salesforce updates remain the same.

Only invoice opportunities above a threshold

Add a condition to check the opportunity amount before creating the invoice, so only deals above a minimum value are sent to QuickBooks. This filters out smaller transactions automatically.

Include custom fields on invoice line items

Set additional Salesforce fields like project code or cost center on each QuickBooks invoice line item so accounting has full context. This requires mapping those fields during invoice creation.

How it works

  1. Monitor opportunity changes in Salesforce. When an opportunity is created or updated in Salesforce, capture the account name, products, and amounts needed to build the invoice.
  2. Retrieve opportunity line items. Fetch all related opportunity products from Salesforce so each line item can be added to the QuickBooks invoice with pricing and quantity.
  3. Find the customer in QuickBooks. Search QuickBooks for a customer matching the Salesforce account. If the customer exists, proceed to invoice creation with that customer ID.
  4. Create invoice with all line items. Build a QuickBooks invoice for the customer, adding each opportunity product as a separate line item with amounts from Salesforce.
  5. Link invoice back to opportunity. Update the Salesforce opportunity with the QuickBooks invoice ID so the record is connected and traceable between both systems.