Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Combine Elements Logically in a Block

          Combine Elements Logically in a Block

          Combine logical groups of elements in an Omniscript Step using a Block element. Blocks help to group information to create nested JSON data. Blocks are contained within steps and can be repeated to capture an array of data. For example, street, city, state, and postal code elements can be combined into an address block.

          Note
          Note You can nest Blocks within other Blocks, but Blocks don’t support the Custom LWC Element.
          1. From the elements panel, drag a Block element to the 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, select Collapse.
          4. In the Heading Level field, enter the nesting level of the element as a number.
          5. Enable users to add multiple block entries:
            1. In Clone Elements, select Copy elements.
            2. In the designer on a managed package, select Enable Repeat under 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.
          6. To clone values when a Block is repeated, select Clone When Repeating.
          7. In the Limit Repeat field, enter a number to set the number of times a Block can be repeated.
          8. Preview the Omniscript and test the functionality.
          Example
          Example Data JSON output format based on your configuration to map data JSON from blocks:
          • No block JSON:
            No block JSON example
          • Block JSON
            Block JSON example
          • Repeatable block JSON
            Repeatable block JSON example
           
          Loading
          Salesforce Help | Article