Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Create Fulfillment Order Action

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:

  • fulfillmentGroups — A list of Apex-defined variables of class ConnectApi.FulfillmentGroupInputRepresentation. A fulfillment order is created for each fulfillment group. A group represents a set of order product summaries to fulfill from a single location, using the same fulfillment type. Each fulfillment group variable has these fields:
    • fulfilledFromLocationId — Reference to the fulfillment location.
    • fulfillmentType — The fulfillment type. Specify one of the values that you defined for the Type field picklist on the Fulfillment Order object.
    • orderItemSummaries — A list of Apex-defined variables of class ConnectApi.OrderItemSummaryInputRepresentation. Each variable has these fields:
      • orderItemSummaryId — Reference to an order product summary.
      • quantity — The quantity of the order product summary to allocate to the fulfillment order.
    • referenceId — Reference to the fulfillment group input. This action doesn’t use this value.
  • orderDeliveryGroupSummaryId — Reference to the order delivery group summary associated with the order product summaries.
  • orderSummaryId — Reference to the order summary associated with the order product summaries.

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:

  1. Use Assignment elements to set the orderItemSummaryId and quantity field values on one or more ConnectApi.OrderItemSummaryInputRepresentation variables for each fulfillment group.
  2. 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.
  3. Use Assignment elements to set the fulfilledFromLocationId and fulfillmentType field values on the fulfillment group variables.
  4. Use Assignment elements to add the fulfillment group variables to the fulfillmentGroups field on a ConnectApi.FulfillmentOrderInputRepresentation variable.
  5. Use Assignment elements to set the orderDeliveryGroupSummaryId and orderSummaryId field values on the ConnectApi.FulfillmentOrderInputRepresentation variable.
  6. Use the ConnectApi.FulfillmentOrderInputRepresentation variable in the action input.
 
Loading
Salesforce Help | Article