Loading
Salesforce now sends email only from verified domains. Read 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
          Prefill Repeatable Blocks (Managed Package)

          Prefill Repeatable Blocks (Managed Package)

          For the managed package runtime, prefill repeatable blocks with data by passing data to the block in an array format.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          The data's root node name must match the name of the block element. The fields within each array instance of the data JSON node must match the name of an element within the block. Prefill data into repeatable blocks with Actions by returning data that matches the block's element name and the element's within the block using an array format.

          Beginning with Vlocity Insurance and Health Winter '20 and Vlocity CME Winter '20, LWC Omniscripts support prefilling repeatable blocks.

          Data JSON array format example:

          "EditBlock1": [
                {
                  "FirstName": "John",
                  "LastName": "Smith"
                },
                {
                  "FirstName": "Jane",
                  "LastName": "Smith"
                }
              ]

          To map Data JSON to a Repeatable Block with a Set Values action:

          1. Add a Block or Edit Block to the Omniscript.
          2. (Optional) When using a Block, check the Block's Repeat checkbox property.
            Note
            Note

            Edit Blocks are inherently repeatable because they store entry values in an array format.

          3. Add Input elements to the Block.
          4. Add a Set Values Action to the Omniscript.
          5. In the Set Values Action, click Add New Value.
          6. In the Element Name field, enter the name of your block element.
          7. Click Edit as JSON in the Set Values Action element to edit the JSON directly.
          8. In the elementValueMap JSON node, locate the block element's JSON node, and enter an array of data. For example, to prefill two Text input elements in an Edit Block element, add an array that maps to the elements in the block.

            Edit Block Element configuration:

            image

            JSON Array:

            "EditBlock1": [
                  {
                    "FirstName": "John",
                    "LastName": "Smith"
                  },
                  {
                    "FirstName": "Jane",
                    "LastName": "Smith"
                  }
                ]
          9. Click Edit in Property Editor to convert back to the default view of the Set Values Action.
            image
          10. Preview the Omniscript to view the nested data in the Omniscript's data JSON.
            image
           
          Loading
          Salesforce Help | Article