Create QuickBooks invoice from Salesforce opportunity

CRMMarketingSalesAccounting

What it does

When an invoice is created or updated in Salesforce, this automation searches for the related opportunity and contact. It then creates the QuickBooks invoice matched to the correct customer.

Who it's for

Accounting teams who need QuickBooks invoices created automatically from Salesforce opportunities without manual data entry.

How teams use this

Sync closed opportunities to QuickBooks

When an opportunity closes in Salesforce, the invoice is created in QuickBooks with the customer and line items already matched. The accounting team never has to re-enter the data.

Route invoices by customer type

The automation checks the opportunity record type and routes individual customers differently than organizations. Each path pulls the right contact or account from Salesforce.

Prevent duplicate invoices in QuickBooks

Before creating an invoice, the automation checks whether a QuickBooks invoice number already exists on the Salesforce record. If it does, the invoice is not created again.

Add custom fields to the QuickBooks invoice

Extend the automation to include additional Salesforce fields such as project code or department on the QuickBooks invoice. Set those fields during the create step.

How it works

  1. Monitor for new or updated invoices. When an invoice is created or updated in Salesforce, this automation checks whether a QuickBooks invoice number already exists on the record.
  2. Find the related opportunity. Search Salesforce for the opportunity linked to the invoice so the automation can pull the correct customer and line item details.
  3. Identify the opportunity type. Get the record type from the opportunity to determine whether the customer is an individual or an organization in Salesforce.
  4. Retrieve the primary contact. Search Salesforce for the primary contact on the opportunity, then check whether that contact has a QuickBooks customer ID linked.
  5. Create the QuickBooks invoice. Get the customer details from QuickBooks using the ID from Salesforce, then create the invoice with the opportunity line items and customer information.