---
schema_version: "1"
id: 36dd893db59204385011ea2eabe6614f4997ee064c8fa93aca4ad2d604d6f12f
title: 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_block.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_block.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 15fdbc7b9622b1aaccc7c2f0bb0703cece67e0e6e40aa54ca00d679ea5468458
description: For the managed package runtime, combine logical groups of elements in an Omniscript Step using a Block element.
products:
  - Omnistudio
release: "264"
---
# Block (Managed Package)

For the managed package runtime, combine logical groups of elements in an Omniscript Step using a Block element.

![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).

Blocks help to group information to create nested JSON data. Blocks are contained within [Steps](https://help.salesforce.com/s/articleView?id=xcloud.os_steps.htm&release=264.0.0&type=5 "For the managed package runtime, each Step element in an Omniscript presents a page to the user that prompts for input or displays information. For navigation, all Steps except the first have a Next button, and all except the last have a Previous button.") and can repeat to capture an array of data. For example, street, city, state, and postal code elements can be combined into an address block.

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

Note You can nest Blocks within other Blocks, but Blocks don’t support the Custom LWC Element.

1. Drag a **Block** element into the Omniscript canvas and name the element.
2. In **Field Label**, enter a label that displays to users.
3. To render a collapsed Block in the Omniscript, check **Collapse**.
4. In the **Heading Level** field, enter the nesting level of the element as a number.
5. To enable users to add multiple block entries, check **Enable Repeat** in **Repeat Settings**.
    
    Repeatable blocks store data in an array format, where each block entry is indexed in an array under the Block's element name.
    
    - If you plan to access data from an element in a repeatable Block, see [Access to Data Within and Outside a Repeatable Block (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, suppose you place an element in a repeatable block (a Block or an Edit Block) and you want to access data that is calculated in a different element. The method that you use to access the data depends on whether the element containing the data is within or outside the same repeatable block in the Omniscript. Review guidelines and examples for the Formula element and for the Select element, which is used to add a dependent picklist to an Omniscript.").
    - For information about prefilling blocks, see [Prefill Repeatable Blocks (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_prefill_repeatable_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, prefill repeatable blocks with data by passing data to the block in an array format.").
6. To clone values when a Block is repeated, check **Clone When Repeating**.
7. To set the number of times a Block can be repeated, enter a number in the **Limit Repeat** field.
8. Preview the Omniscript and test the functionality.

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

Example Data JSON output format based on your configuration to map data JSON from blocks:

- No block JSON:
    
    ![No block JSON example](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/step_json_lwc_os_designer.png)
- Block JSON:
    
    ![Block JSON example](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/block_json_lwc_os_designer.png)
- Repeatable block JSON:
    
    ![Repeatable block JSON example](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/block_repeat_json_lwc_os_designer.png)

#### See Also

- [Access to Data Within and Outside a Repeatable Block (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, suppose you place an element in a repeatable block (a Block or an Edit Block) and you want to access data that is calculated in a different element. The method that you use to access the data depends on whether the element containing the data is within or outside the same repeatable block in the Omniscript. Review guidelines and examples for the Formula element and for the Select element, which is used to add a dependent picklist to an Omniscript.")