Sync new QuickBooks invoices to Salesforce opportunities

AccountingRecipe ToolsCRMMarketing

What it does

When a new invoice is created in QuickBooks, this automation checks the memo and syncs the invoice details to Salesforce as an opportunity. It creates or updates the opportunity based on the invoice balance and line item details.

Who it's for

Sales operations teams who need QuickBooks invoices reflected in Salesforce without manual entry.

How teams use this

Prevent duplicate syncs between systems

The automation checks the invoice memo for a Synced tag so invoices already sent to Salesforce are not synced again, keeping both systems clean and accurate.

Sync invoices to a different Salesforce org

Point the automation to another Salesforce instance by updating the connection. The flow and logic stay the same, only the destination changes.

Filter invoices by status or amount

Add a condition to only sync invoices with a balance greater than a set threshold or a specific status. This narrows which QuickBooks invoices reach Salesforce.

How it works

  1. Monitor for new invoices. A new sales receipt is created in QuickBooks and the automation checks whether the memo contains Synced from Salesforce via Workato to avoid duplicate syncs.
  2. Sync contact and account data. Call the Sync Contact/Acct from QB to SF flow to ensure the customer record exists in Salesforce before the opportunity is created or updated.
  3. Retrieve invoice line items. Get the full invoice details from QuickBooks, including all line items, so each product can be added to the Salesforce opportunity.
  4. Create or update the opportunity. Upsert an opportunity in Salesforce with the invoice total, customer, and line items. The record is created if it does not exist or updated if it matches an existing opportunity.