Sync Closed Won opportunities from Salesforce to QuickBooks

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 items in QuickBooks so the invoice is complete.

Who it's for

Accounting teams who need invoices in QuickBooks to match closed deals in Salesforce without manual entry.

How teams use this

Convert closed deals to invoices automatically

Move a Closed Won opportunity to QuickBooks as an invoice with all products and customer details filled in. The team no longer re-enters deal data into the accounting system.

Sync only opportunities above a certain amount

Add a condition to filter opportunities by amount so only deals above a threshold create invoices in QuickBooks. Smaller deals stay in Salesforce and do not clutter the books.

Route invoices to different QuickBooks classes

Check the opportunity source or type and assign the invoice to the matching QuickBooks class so revenue is sorted by business line. This requires mapping Salesforce fields to QuickBooks classes.

Notify sales when the invoice is created

Send a Slack message to the sales channel when the invoice is created in QuickBooks so the team knows the deal is now in the accounting system.

How it works

  1. Monitor for Closed Won opportunities. When an opportunity stage changes to Closed Won in Salesforce, this automation retrieves the opportunity, its associated account, and all products linked to the deal.
  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 details so the invoice has a valid customer to bill.
  4. Create the invoice with line items. Create a sales invoice in QuickBooks with the opportunity products as line items, or a single line if the opportunity has no products attached.
  5. Store the invoice ID in Salesforce. Update the opportunity record with the QuickBooks invoice ID so the two systems stay linked and the deal is marked complete.