---
schema_version: "1"
id: 5fed6af2b871194ccba58d4cee16c97fa854ff464a46018a2f4697a1ca8bed13
title: Fulfill Reservation Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_oci_actions_fulfill_reservation.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_oci_actions_fulfill_reservation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8c6b8122cca585a6dafdf55c4a4f775b4f31a31bbe00b44e4d08854f7aac3eb3
description: In Omnichannel Inventory, fulfill one or more inventory reservations at a location.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Fulfill Reservation Action

In Omnichannel Inventory, fulfill one or more inventory reservations at a location.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature requires the Salesforce Omnichannel Inventory add-on. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. Select the **Omnichannel Inventory Service** category, and search for **Omnichannel Inventory Service Fulfill Reservation**.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note Set the flow’s runtime API version to 52.0 or later.

Set Input Values

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.006802721088434%">
          <col style="width:82.99319727891157%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d113051e94">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d113051e97">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d113051e94 ">
              <strong class="uicontrol">Omnichannel Inventory Service Fulfill Reservation
                Input</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d113051e97 ">
              <p>This input is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_input_o_c_i_fulfill_reservation.htm" target="_blank">ConnectApi.OCIFulfillReservationInputRepresentation</a>.</p>
              <p>The variable has
                one field: <strong class="uicontrol">fulfillmentRecords</strong>. This field is a list of up to
                100 Apex-defined variables of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_input_o_c_i_fulfill_reservation_single.htm" target="_blank">ConnectApi.OCIFulfillReservationSingleInputRepresentation</a>. Each variable
                has these fields.</p>
              <ul>
                <li><strong class="uicontrol">actionRequestId</strong>—A UUID that identifies the request. To
                  identify which actions succeeded or failed, use the action request IDs in the
                  output variables.</li>
                <li><strong class="uicontrol">externalRefId</strong>—Optional. The external reference ID.</li>
                <li><strong class="uicontrol">locationIdentifier</strong>—Identifier of the location at which to
                  fulfill the reserved inventory.</li>
                <li><strong class="uicontrol">quantity</strong>—The quantity of the product to fulfill.</li>
                <li><strong class="uicontrol">stockKeepingUnit</strong>—The Stock Keeping Unit of the product to
                  fulfill.</li>
              </ul>
            </td>

          </tr>
        </tbody>
      </table>

Store Output Values

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.513134851138354%">
          <col style="width:82.48686514886164%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d113051e168">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d113051e171">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d113051e168 ">
              <strong class="uicontrol">Omnichannel Inventory Service Fulfill Reservation
                Output</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d113051e171 ">
              <p>This value is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_o_c_i_fulfill_reservation_output.htm" target="_blank">ConnectApi.OCIFulfillReservationOutputRepresentation</a>.</p>
              <p>The variable has
                these fields.</p>
              <ul>
                <li><strong class="uicontrol">errors</strong>—A list of Apex-defined variables of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_o_c_i_fulfill_reservation_error_output.htm" target="_blank">ConnectApi.OCIFulfillReservationErrorOutputRepresentation</a>. Each
                  variable represents a returned error and has these fields.<a name="flow_ref_elements_oci_actions_fulfill_reservation__orderlifecycletypevalues"><!-- --></a>
                  <ul id="flow_ref_elements_oci_actions_fulfill_reservation__orderlifecycletypevalues">
                    <li><strong class="uicontrol">details</strong>—An Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_o_c_i_fulfill_reservation_single_output.htm" target="_blank">ConnectApi.OCIFulfillReservationSingleOutputRepresentation</a>. Each
                      variable represents a returned error and includes the values from the input
                      so you can resubmit them:<ul>
                        <li><strong class="uicontrol">actionRequestId</strong>—A UUID that identifies the failed
                          request.</li>
                        <li><strong class="uicontrol">externalRefId</strong>—The external reference ID.</li>
                        <li><strong class="uicontrol">locationIdentifier</strong>—Identifier of the location at
                          which to fulfill the reserved inventory.</li>
                        <li><strong class="uicontrol">quantity</strong>—The quantity of the product to
                          fulfill.</li>
                        <li><strong class="uicontrol">stockKeepingUnit</strong>—The Stock Keeping Unit of the
                          product to fulfill.</li>
                      </ul>
                    </li>
                    <li><strong class="uicontrol">errorCode</strong>—The error code.</li>
                    <li><strong class="uicontrol">message</strong>—Details of the error, if available.</li>
                  </ul>
                </li>
                <li><strong class="uicontrol">success</strong>—Indicates whether the fulfillment succeeded.</li>
              </ul>
            </td>

          </tr>
        </tbody>
      </table>

To set up the Omnichannel Inventory Service Fulfill Reservation Input:

- For each reservation to fulfill, use Assignment elements to set the **actionRequestId**, **externalRefId**, **locationIdentifier**, **quantity**, and **stockKeepingUnit** field values on a **ConnectApi.OCIFulfillReservationSingleInputRepresentation** variable.
- Use Assignment elements to add the **ConnectApi.OCIFulfillReservationSingleInputRepresentation** variables to the **fulfillmentRecords** field on a **ConnectApi.OCIFulfillReservationInputRepresentation** variable.
- Use the **ConnectApi.OCIFulfillReservationInputRepresentation** variable in the action input.

#### See Also

- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")