You are here:
Create Fulfillment Orders Action
In Salesforce Order Management, create fulfillment orders and fulfillment order products for multiple order delivery group summaries, each of which defines a recipient and delivery method. You specify the order product summaries to fulfill and the fulfillment locations to handle them. If you specify multiple fulfillment locations for one order delivery group summary, a fulfillment order is created for each one.
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 Fulfillment Orders.
Set Input Values
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| Fulfillment Orders Input | This input is an Apex-defined variable of class ConnectApi.MultipleFulfillmentOrderInputRepresentation. The variable has one field: fulfillmentOrders. This field is a list of Apex-defined variables of class ConnectApi.FulfillmentOrderInputRepresentation. Each variable has three fields:
|
Store Output Values
| Output Parameter | Description |
|---|---|
| Fulfillment Orders Output | This value is an Apex-defined variable of class ConnectApi.MultipleFulfillmentOrderOutputRepresentation. The variable has one field: fulfillmentOrders. This field is a list of Apex-defined variables of class ConnectApi.FulfillmentGroupOutputRepresentation. Each variable has these fields:
|
To set up the Fulfillment Orders Input:
-
For each order delivery group:
- Use Assignment elements to set the orderItemSummaryId and quantity field values on one or more ConnectApi.OrderItemSummaryInputRepresentation variables.
- Use Assignment elements to add the ConnectApi.OrderItemSummaryInputRepresentation variables to the orderItemSummaries fields on one or more ConnectApi.FulfillmentGroupInputRepresentation variables, one for each fulfillment group.
- Use Assignment elements to set the fulfilledFromLocationId, fulfillmentType, and referenceId field values on the ConnectApi.FulfillmentGroupInputRepresentation variables.
- Use Assignment elements to add the ConnectApi.FulfillmentGroupInputRepresentation variables to the fulfillmentGroups field on a ConnectApi.FulfillmentOrderInputRepresentation variable.
- Use Assignment elements to set the orderDeliveryGroupSummaryId and orderSummaryId field values on the ConnectApi.FulfillmentOrderInputRepresentation variable.
- Use Assignment elements to add the ConnectApi.FulfillmentOrderInputRepresentation variables to the fulfillmentOrders field on a ConnectApi.MultipleFulfillmentOrderInputRepresentation variable.
- Use the ConnectApi.MultipleFulfillmentOrderInputRepresentation variable in the action input.

