Sync Salesforce Closed-Won opportunity to QuickBooks invoice

CRMMarketingAccountingRecipe Tools

What it does

When someone marks an opportunity Closed Won in Salesforce, this automation creates a QuickBooks invoice. It builds the customer and product records in QuickBooks first if they do not exist, then links the invoice back to Salesforce.

Who it's for

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

Apps used

How teams use this

Sync closed deals to accounting

When sales marks an opportunity Closed Won, the invoice appears in QuickBooks ready for billing. The customer and products are created automatically so accounting does not have to set them up manually.

Route invoices by product type

Extend this automation to check the product category on the opportunity and route the QuickBooks invoice to different accounting teams based on the type of sale.

Prevent duplicate invoices in QuickBooks

Sales teams can reopen and close opportunities without creating duplicate invoices because the automation checks if the QuickBooks invoice number is already in the Salesforce description.

Add tax codes to invoice line items

Include a tax code lookup step so each QuickBooks invoice line item is created with the correct tax treatment based on the product type.

How it works

  1. Opportunity marked Closed Won. An opportunity stage changes to Closed Won in Salesforce and the description does not yet contain a QuickBooks invoice number.
  2. Search and create the customer. Search QuickBooks for the customer linked to the opportunity account. If the customer does not exist, create it in QuickBooks with the account details.
  3. Search and create line items. Search QuickBooks for each product on the opportunity. Create any missing items in QuickBooks so they are ready to add to the invoice.
  4. Create the invoice. Create the invoice in QuickBooks for the customer with all opportunity products as line items, then update the Salesforce opportunity description with the invoice number.