Sync Salesforce Closed-Won opportunity to FreshBooks invoice
CRMMarketingSalesAccounting
What it does
When someone updates a Salesforce opportunity to Closed Won, this automation creates a FreshBooks invoice with line items and updates Salesforce with the invoice number. The invoice is created only if one does not already exist for that opportunity.
Who it's for
Accounting teams who need to generate FreshBooks invoices automatically when deals close in Salesforce.
Apps used
How teams use this
Invoice customers when deals close
Closed-Won opportunities automatically generate FreshBooks invoices with the correct line items and client information. Accounting teams no longer need to manually create invoices in FreshBooks.
Sync invoices from different pipeline stages
Route opportunities from a different Salesforce stage or org to FreshBooks. The automation logic stays the same and only the trigger condition changes to match your pipeline.
Add custom fields to the invoice
Include purchase order number, cost center, or project ID from Salesforce when creating the FreshBooks invoice. Set these fields on the invoice to match the opportunity record.
Filter invoices by product type
Only create FreshBooks invoices for opportunities with specific products or a minimum amount. Add a condition to check the opportunity line items before invoicing.
How it works
- Opportunity moves to Closed Won. An opportunity in Salesforce is updated to the Closed Won stage and the description does not already contain a FreshBooks invoice number.
- Search or create the client in FreshBooks. Search FreshBooks for a client matching the Salesforce account. If the client does not exist, create one using the account name and contact email from Salesforce.
- Create the invoice with line items. Create a FreshBooks invoice for the client with line items matching the opportunity products. Each product from Salesforce becomes an invoice item in FreshBooks.
- Update the opportunity with invoice number. Add the FreshBooks invoice number to the Salesforce opportunity reference field so the same invoice is not created twice for this deal.