---
schema_version: "1"
id: ec59f0c1e005514745d8e88b1212c76d908e49984b9f1ce948d7c0b57a1e99b9
title: Hold Fulfillment Order Capacity 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_om_actions_hold_fo_capacity.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_om_actions_hold_fo_capacity.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f4ab6ab52c2bc7e3df434c5c198f343e1896620d01b8900dfbc87d4ae2a6f29e
description: In Salesforce Order Management, hold capacity to process fulfillment orders at one or more locations. This action increases a location’s held capacity. Hold capacity when you plan to assign a fulfillment order to a location.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Hold Fulfillment Order Capacity Action

In Salesforce Order Management, hold capacity to process fulfillment orders at one or more locations. This action increases a location’s held capacity. Hold capacity when you plan to assign a fulfillment order to 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 Order Management 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 **Order Management** category, and search for **Hold Fulfillment Order Capacity**.

## 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="d312033e82">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d312033e84">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d312033e82 "><strong class="uicontrol">Hold Fulfillment Order Capacity Input</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d312033e84 ">
              <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_hold_f_o_capacity_request.htm" target="_blank">ConnectApi.HoldFOCapacityRequestInputRepresentation</a>, which includes these fields:</p>
              <ul>
                <li><strong class="uicontrol">allOrNothing</strong> —(Optional) Controls whether a single failed
                  request cancels all other requests in the list (<kbd>true</kbd>) or
                  whether some requests can succeed if others fail (<kbd>false</kbd>).
                  The default value is <kbd>false</kbd>.</li>
                <li><strong class="uicontrol">capacityRequests</strong> —This field is a list of Apex-defined
                  variables of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_input_capacity_request.htm" target="_blank">ConnectApi.CapacityRequestInputRepresentation</a>. Each of the variables
                  represents a request to hold capacity for one fulfillment order at one location,
                  and includes these fields:<ul>
                    <li><strong class="uicontrol">actionRequestId</strong> —Unique string that identifies the
                      request. Can be a UUID. Use the action request IDs in response data to
                      identify which requests succeeded or failed.</li>
                    <li><strong class="uicontrol">locationId</strong> —ID of the location associated with the
                      request.</li>
                  </ul>
                </li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>

## Store Output Values

Use output values later in the flow. The values are assigned when the capacity properties are updated.

<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="d312033e139">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d312033e141">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d312033e139 "><strong class="uicontrol">Hold Fulfillment Order Capacity Output</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d312033e141 ">
              <p>This output is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_hold_f_o_capacity_response_output.htm" target="_blank">ConnectApi.HoldFOCapacityResponseOutputRepresentation</a>, which includes this field:</p>
              <ul>
                <li><strong class="uicontrol">capacityResponses</strong> —This field is a list of Apex-defined
                  variables of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_capacity_response_output.htm" target="_blank">ConnectApi.CapacityResponseOutputRepresentation</a>, each of which
                  includes these fields:<ul>
                    <li><strong class="uicontrol">actionRequestId</strong> —Unique string that identifies the
                      original capacity request.</li>
                    <li><strong class="uicontrol">error</strong> —This field is an Apex-defined variable of
                      class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_error_response.htm" target="_blank">ConnectApi.ErrorResponse</a>, which includes these fields:<ul>
                        <li><strong class="uicontrol">errorCode</strong> —Error code, if the request returned an
                          error.</li>
                        <li><strong class="uicontrol">message</strong> —More error detail, if available.</li>
                      </ul>
                    </li>
                    <li><strong class="uicontrol">success</strong> —Indicates whether the request was successful
                      (<kbd>true</kbd>) or not (<kbd>false</kbd>).</li>
                  </ul>
                </li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>