You are here:
Create Fulfillment Order Action
In Salesforce Order Management, create one or more fulfillment orders and fulfillment order products for an order delivery group summary, 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, 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 Order.
Set Input Values
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| Fulfillment Order Input | This input is an Apex-defined variable of class ConnectApi.FulfillmentOrderInputRepresentation. The variable has three fields:
|
Store Output Values
| Output Parameter | Description |
|---|---|
| Fulfillment Order Output | This value is an Apex-defined variable of class ConnectApi.FulfillmentOrderOutputRepresentation. The fulfillmentOrderIds field is a list of IDs of the created fulfillment orders. |
To set up the Fulfillment Order Input:
- Use Assignment elements to set the orderItemSummaryId and quantity field values on one or more ConnectApi.OrderItemSummaryInputRepresentation variables for each fulfillment group.
- 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 and fulfillmentType field values on the fulfillment group variables.
- Use Assignment elements to add the fulfillment group 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 the ConnectApi.FulfillmentOrderInputRepresentation variable in the action input.

