---
schema_version: "1"
id: 0cb43f47c3157e13692896df5103906695d0ca920f4792b6cd47ebd1d7f0640c
title: Release 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_release_reservation.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_oci_actions_release_reservation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8c0a9b508db2962fef7dbabd2b079429fa842d1d129f3745527cdbdd50779cee
description: In Omnichannel Inventory, release one or more inventory reservations.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Release Reservation Action

In Omnichannel Inventory, release one or more inventory reservations.

### 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 Release 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="d84444e93">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d84444e96">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d84444e93 ">
              <strong class="uicontrol">Omnichannel Inventory Service Release Reservation
                Input</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84444e96 ">
              <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_release_reservation.htm" target="_blank">ConnectApi.OCIReleaseReservationInputRepresentation</a>.</p>
              <p>The variable has
                one field: <strong class="uicontrol">releaseRecords</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_release_reservation_single.htm" target="_blank">ConnectApi.OCIReleaseReservationSingleInputRepresentation</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">locationGroupIdentifier</strong>—Identifier of the location group
                  at which to release the reserved inventory. Either
                  <strong class="uicontrol">locationGroupIdentifier</strong> or
                  <strong class="uicontrol">locationIdentifier</strong> is required, but not both.
                </li>
                <li><strong class="uicontrol">locationIdentifier</strong>—Identifier of the location at which to
                  release the reserved inventory. Either <strong class="uicontrol">locationIdentifier</strong>
                  or <strong class="uicontrol">locationGroupIdentifier</strong> is required, but not both.</li>
                <li><strong class="uicontrol">quantity</strong>—The quantity of the product to release.</li>
                <li><strong class="uicontrol">stockKeepingUnit</strong>—The Stock Keeping Unit of the product to
                  release.</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="d84444e183">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d84444e186">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d84444e183 ">
              <strong class="uicontrol">Omnichannel Inventory Service Release Reservation
                Output</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84444e186 ">
              <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_release_reservation_output.htm" target="_blank">ConnectApi.OCIReleaseReservationOutputRepresentation</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_release_reservation_error_output.htm" target="_blank">ConnectApi.OCIReleaseReservationErrorOutputRepresentation</a>. Each
                  variable represents a returned error and has these fields.<a name="flow_ref_elements_oci_actions_release_reservation__orderlifecycletypevalues"><!-- --></a>
                  <ul id="flow_ref_elements_oci_actions_release_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_release_reservation_single_output.htm" target="_blank">ConnectApi.OCIReleaseReservationSingleOutputRepresentation</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">locationGroupIdentifier</strong>—Identifier of the
                          location group at which to release the reserved inventory.</li>
                        <li><strong class="uicontrol">locationIdentifier</strong>—Identifier of the location at
                          which to release the reserved inventory.</li>
                        <li><strong class="uicontrol">quantity</strong>—The quantity of the product to
                          release.</li>
                        <li><strong class="uicontrol">stockKeepingUnit</strong>—The Stock Keeping Unit of the
                          product to release.</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 release succeeded.</li>
              </ul>
            </td>

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

To set up the Omnichannel Inventory Service Release Reservation Input:

- For each reservation to release, use Assignment elements to set the **actionRequestId**, **externalRefId**, **locationGroupIdentifier** or **locationIdentifier**, **quantity**, and **stockKeepingUnit** field values on a **ConnectApi.OCIReleaseReservationSingleInputRepresentation** variable.
- Use Assignment elements to add the **ConnectApi.OCIReleaseReservationSingleInputRepresentation** variables to the **releaseRecords** field on a **ConnectApi.OCIReleaseReservationInputRepresentation** variable.
- Use the **ConnectApi.OCIReleaseReservationInputRepresentation** 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.")