Create Salesforce invoices from new orders

CRMMarketing

What it does

When a new or updated sales document arrives in Salesforce with record type Order and Generate Invoice set to true, this automation fetches the opportunity and account details. It then creates an invoice in Salesforce when invoices have not yet been created for that order.

Who it's for

Accounting teams who need invoices generated automatically when orders are marked ready in Salesforce.

Apps used

How teams use this

Automate invoice creation on order approval

When a sales rep marks an order ready to invoice in Salesforce, the invoice is created automatically with all customer and line item data. No manual data entry or switching between systems is needed.

Prevent duplicate invoices for the same order

The automation checks that invoices have not already been created for this order before generating a new one. This stops accidental duplicates and keeps the invoice count accurate.

Route invoices by account type or region

Add a condition to check the account type or billing region so invoices are routed to the correct accounting queue or approval workflow. Only invoices matching the filter criteria will be created.

Notify finance when invoices are generated

Include a notification step so the finance team receives a message in Slack or email each time an invoice is created from an order. The team stays informed without checking Salesforce manually.

How it works

  1. Monitor for new or updated orders. Watch Salesforce for a new or updated sales document where record type equals Order, Generate Invoice is true, and Invoices Created is not true.
  2. Retrieve opportunity details. Fetch the opportunity record linked to the order so the invoice has the correct sales data, line items, and revenue information from Salesforce.
  3. Retrieve account details. Get the account record from Salesforce so the invoice includes the correct billing address, customer name, and payment terms for the customer.
  4. Create the invoice. Generate a new invoice in Salesforce with the opportunity and account details, then mark Invoices Created as true on the order record.