---
schema_version: "1"
id: 51f4c633921adee5d85aca8727a9cbf0cc3963ea743faf223a9739c193634f7f
title: Action Block (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_action_block.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_action_block.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0ca5105aa5f6cfe25447787621a519941cf02e31d3367ada4c54a113f87591ac
description: For the managed package runtime, run multiple Omniscript Actions asynchronously by grouping them in an Action Block. Actions within the Action Block run in parallel and inherit the Action Block's settings.
products:
  - Omnistudio
release: "264"
---
# Action Block (Managed Package)

For the managed package runtime, run multiple Omniscript Actions asynchronously by grouping them in an Action Block. Actions within the Action Block run in parallel and inherit the Action Block's settings.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

View the Action Block flow chart to understand how actions in the Action Block execute.

Action Block flow chart:

![image](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/action_block_flow.png)

1. Drag the **Action Block** from the element palette into the designer. Place the Action Block inside of a Step, before the first Step, or between Steps.
2. Drag up to four Actions into the Action Block.
3. Select an **Invoke Mode** to control how actions inside the Action Block run.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53141e90">
                  <p style="margin-bottom:0;">Property</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53141e96">
                  <p style="margin-bottom:0;">Description</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e90 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Default</strong>
                  </p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e96 ">
                  <p style="margin-bottom:0;">The Action blocks the UI with a loading spinner.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e90 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Non-Blocking</strong>
                  </p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e96 ">
                  <p style="margin-bottom:0;">The Action runs asynchronously, and the response applies to the UI.
                    Pre and Post Omnistudio Data Mapper transforms, and large attachments are not
                    supported.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e90 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Fire and Forget</strong>
                  </p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d53141e96 ">
                  <p style="margin-bottom:0;">The Action runs asynchronously with no callback to the UI. Pre and
                    Post Data Mapper transforms, and large attachments are not
                    supported. A response still appears in the debug console but does
                    not apply to the Data JSON.</p>
                </td>

              </tr>
            </tbody>
          </table>
4. (Optional) When Invoke Mode is set to non-blocking, elements using default values will not receive the response because the element loads before the response returns. You must configure these properties to map the response to an element:
    
    - **Response JSON Node**: VlocityNoRootNode
    - **Response JSON Path**: The name of the Omniscript Element receiving the value.
5. (Optional) Check **Apply if error** to enable actions that run successfully to apply their responses to the Omniscript's data JSON even when other actions in the Action Block fail. When **Apply if error** is unchecked, successful actions do not apply their responses to the data JSON when another action in the block fails.
6. (Optional) When the Action Block is inside of a Step, set **Validation Required** to **Step** to prevent the Action Block from running when errors exist in the Step.
7. Preview the Omniscript to test the Action Block behavior.

- **[Action Block Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_action_block_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, this page contains information on Action Block properties.