Create QuickBooks invoice from Salesforce opportunity
CRMMarketingAccountingRecipe ToolsDocument/FileCollaboration
What it does
When an opportunity reaches PO Received stage in Salesforce, this automation retrieves related products and account details. It creates a QuickBooks customer if needed, then generates a sales invoice with multiple line items.
Who it's for
Accounting teams who need to bill opportunities from Salesforce without manually entering data into QuickBooks.
How teams use this
Bill a closed deal automatically
When a sales opportunity reaches PO Received stage, the automation creates a QuickBooks invoice with all line items and customer details from Salesforce. The team no longer needs to re-enter data manually.
Route invoices by contract entity
Extend the automation to check the contract entity field and route invoices to different QuickBooks accounts based on whether the entity equals Secure Code Warrior BVBA. Only matching opportunities trigger invoice creation.
Notify the sales team of billing
Add a Slack notification step to send a message to the sales channel when an invoice is created in QuickBooks. The team knows the opportunity has been billed and can follow up with the customer.
Track invoices in a spreadsheet
Include a Google Sheets logging step to record each created invoice with the opportunity name, customer, and invoice amount for reporting and reconciliation purposes.
How it works
- Monitor opportunity stage changes. When an opportunity is created or updated in Salesforce, check if the stage equals PO Received to decide whether to proceed with invoice creation.
- Retrieve opportunity products and account. Get the list of related opportunity products and the account details, including the contract entity and currency, from Salesforce for the invoice.
- Find or create the customer in QuickBooks. Search QuickBooks for a customer matching the Salesforce account. If none exists, create the customer record in QuickBooks with the account details.
- Generate the sales invoice. Create a sales invoice in QuickBooks with multiple line items from the opportunity products, using the customer and currency from Salesforce.
- Update the opportunity record. Update the opportunity in Salesforce to reflect that the invoice has been created in QuickBooks and the billing is complete.