Create QuickBooks invoice from Salesforce opportunity
CRMMarketingSalesAccounting
What it does
When someone updates a Salesforce opportunity stage to Ready to Invoice, this automation searches QuickBooks for the customer. If the customer does not exist, it creates the customer, then builds a QuickBooks invoice with line items from the opportunity.
Who it's for
Accounting teams who need to generate QuickBooks invoices from Salesforce opportunities without manual data entry.
Apps used
How teams use this
Invoice customers from closed deals
When a sales team marks an opportunity Ready to Invoice, the system automatically creates a QuickBooks invoice with all line items. No manual invoice creation is needed.
Sync new customers to QuickBooks
If a customer does not exist in QuickBooks when the opportunity is invoiced, the automation creates the customer record from Salesforce account data. The invoice is then generated with the new customer.
Track invoices back to opportunities
After the invoice is created, the opportunity is updated with the QuickBooks invoice number and stage so the sales team can see which deals have been invoiced. This closes the loop between systems.
Filter products by cost type
Only products that do not contain the word cost in their name are added to the invoice. Include a condition to exclude supplier cost items and only billable items appear on the customer invoice.
How it works
- Opportunity stage changes to Ready to Invoice. An opportunity in Salesforce is created or updated with the Project Status set to Ready to Invoice and no QB Invoice Number present.
- Search for the customer in QuickBooks. Search QuickBooks for a customer matching the Salesforce account name. If not found, create the customer using the account information from Salesforce.
- Gather opportunity line items. Search Salesforce for all products on the opportunity. For each product, check if it exists in QuickBooks and create it if needed.
- Create the invoice with line items. Create a QuickBooks invoice with formatted line descriptions that include the country, project number, and client PO number from the opportunity.
- Update opportunity with invoice details. Update the Salesforce opportunity with the QuickBooks invoice number and change the stage to Send to Accounting.