Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Create an Invoice from Change Orders Action

Create an Invoice from Change Orders Action

In Salesforce Order Management, create an invoice to represent the charges for one or more change orders. Create invoices for change orders that increase order amounts, such as return fees. When you ensure the refund for a return, include the invoices for the associated return fees in the input.

Required Editions

Available in: Lightning Experience
View supported editions.
This feature requires the Salesforce Order Management add-on. To purchase, contact your Salesforce account executive.

In Flow Builder, add an Action element to your flow. Select the Order Management category, and search for Create an Invoice from Change Orders.

Set Input Values

Use values from earlier in the flow to set the inputs.

Input ParameterDescription
Create Invoice From Change Order Input

Required. This input is an Apex-defined variable of class ConnectApi.CreateInvoiceFromChangeOrdersInputRepresentation. It has two fields.

The changeOrderIds field is a list of IDs of the change orders to create an invoice for.

The orderSummaryId field is the ID of the order summary associated with the change orders.

Store Output Values

Output Parameter Description
Invoice Output

This value is an Apex-defined variable of class ConnectApi.ChangeOrdersInvoiceOutputRepresentation. It has three fields.

The errors field is a list of Apex-defined variables of class ConnectApi.​ErrorResponse containing any errors that were returned.

The invoiceId field contains the ID of the created invoice.

The success field indicates whether the transaction was successful.

 
Loading
Salesforce Help | Article