Sync Salesforce opportunity to QuickBooks invoice and customer

CRMMarketingSalesAccounting

What it does

When an opportunity is updated in Salesforce, this automation checks if the customer exists in QuickBooks. It creates the customer if needed, then creates a sales invoice when the opportunity has an Online Invoice URL.

Who it's for

Accounting teams who need to sync Salesforce opportunities to QuickBooks invoices and customers without manual data entry.

How teams use this

Sync closed deals to QuickBooks automatically

When an opportunity is marked closed in Salesforce, this automation creates the customer and invoice in QuickBooks so the accounting team has the data without manual entry.

Route invoices by opportunity type

Add a condition to filter invoices by opportunity type, then assign each to a different QuickBooks class so invoices route to the correct cost center.

Notify sales when customer is created

Include a Slack notification after the customer is created in QuickBooks so the sales team knows the deal is ready for invoicing.

Stop if customer cannot be found

Change the customer creation step to stop the automation and send an error alert if the customer lookup fails, so no invoice is created without a valid customer.

How it works

  1. Monitor Salesforce opportunity updates. When an opportunity is created or updated in Salesforce, this automation runs. Set the Since parameter to control how far back in time to retrieve opportunities.
  2. Search for the customer in QuickBooks. Search QuickBooks for a customer matching the opportunity account so an existing record is not created twice.
  3. Create customer if not found. If the customer does not exist in QuickBooks, create a new customer record with the display name from the opportunity.
  4. Create invoice when Online Invoice URL is present. If the opportunity has an Online Invoice URL field, create a sales invoice in QuickBooks with a single line item for that opportunity.