Create QuickBooks invoice when Salesforce opportunity closes
CRMMarketingRecipe ToolsAccounting
What it does
When a new opportunity is created in Salesforce with a specific record type and not synced from QuickBooks, this automation fetches the opportunity details and searches for matching items. It creates any missing items in QuickBooks, then generates an invoice or sales receipt based on the opportunity stage.
Who it's for
Sales operations teams who need opportunities to automatically become billable records in QuickBooks.
How teams use this
Convert closed deals to invoices
When an opportunity reaches Closed Won status in Salesforce, this automation creates a QuickBooks invoice with all line items so the deal is ready to bill without manual entry.
Sync recurring revenue as sales receipts
Route recurring opportunities to QuickBooks as sales receipts instead of invoices so the accounting team can track subscription revenue separately from one-time deals.
Add custom fields to the invoice
Extend the automation to include purchase order number or project code from Salesforce on the QuickBooks invoice so billing records match internal tracking requirements.
Filter by opportunity source
Set a condition to only create QuickBooks invoices for opportunities from specific channels or regions so partner deals or internal transfers do not generate duplicate billing records.
How it works
- Monitor for new opportunities. Watch Salesforce for a new opportunity with the specified record type that has not been synced from QuickBooks already.
- Retrieve opportunity details. Fetch the full opportunity record from Salesforce, including stage, frequency, and line items needed to build the QuickBooks document.
- Match items in QuickBooks. Search QuickBooks for items that correspond to the opportunity line items, filtered by the country from the opportunity record.
- Create missing items. Add any items to QuickBooks that exist in the opportunity but not in the QuickBooks catalog so the invoice is complete.
- Generate invoice or sales receipt. Create an invoice in QuickBooks for closed-won opportunities marked as one-time sales, or a sales receipt for other stages.