Sync Salesforce Closed-Won deals to QuickBooks invoices

CRMMarketingAccountingRecipe Tools

What it does

When a Salesforce opportunity moves to Closed-Won, this automation searches QuickBooks for the customer. It creates missing customers, items, and invoices so the sale is recorded in the books.

Who it's for

Accounting teams who need Closed-Won deals from Salesforce synced to QuickBooks without manual entry.

Apps used

How teams use this

Eliminate manual invoice entry from Salesforce

Closed-Won opportunities automatically become QuickBooks invoices with all line items, so the accounting team does not re-enter the sale in the books.

Sync only deals above a certain amount

Filter the trigger to only run when the opportunity amount exceeds a threshold, so smaller deals stay out of QuickBooks until they meet the criteria.

Route invoices to different QuickBooks classes

Check the opportunity source or region and assign the invoice to the correct QuickBooks class so revenue is tracked by business unit.

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 recorded in the books.

How it works

  1. Monitor for Closed-Won opportunities. Watch Salesforce for opportunities that move to Closed-Won stage and do not yet have a QuickBooks Invoice Number in the description.
  2. Gather the account and contact details. Retrieve the associated Salesforce account and contact records so the customer information is ready for QuickBooks.
  3. Search for the customer in QuickBooks. Look up the customer in QuickBooks by name. If not found, create the customer with the account and contact details from Salesforce.
  4. Create items and the invoice. Create line items in QuickBooks for each opportunity product if they do not exist, then create the invoice and link it back to the Salesforce opportunity.