Loading
Ongoing maintenance for Salesforce HelpRead 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
          Seed Data Into an Omniscript

          Seed Data Into an Omniscript

          Prefill Omniscript fields with data or add hidden nodes to the Omniscript Data JSON using the Seed Data JSON property in the Omniscript's Setup section.

          Use the Seed Data JSON property with static values that seed during the initial load of the Omniscript. To set values using formulas or with information entered into the Omniscript after the initial load, see Set Values in an Omniscript.

          Note
          Note

          When embedding Omniscripts in the utility bar, flyout, or modal, ensure they scroll to the top when users navigate with Previous or Next buttons by using the "omniscriptEmbeddedSource" key in the prefill. Set the key omniscriptEmbeddedSource with a value of utilitybar, flyout, or modal accordingly.

          1. Open the Omniscript Setup panel.
          2. In the Omniscript's Setup, find Seed Data JSON section, and provide information to prefill the Omniscript during the initial load.
            1. Click Add New Key/Value Pair.
            2. In the Key field, enter the name of the element to prefill.
            3. In the Value field, enter the desired value of the element.
              If the element has multiple responses, such as a multi-select, you can prefill more than one value by separating the entries with a semicolon.
            When the user launches the Omniscript, the elements specified in the Seed Data JSON section contain the static values.
          3. If needed, use the Seed Data JSON property to add hidden nodes to the Data JSON of the Omniscript.
            For example, an Omniscript used for troubleshooting may create a case. You could use the default values from hidden nodes to prefill values. You may want the Omniscript to create a Case with Type, Status, and Origin defined in the Data JSON of the Omniscript. Using this method, you can have multiple Omniscripts associated with one Omnistudio Data Mapper interface that creates the Case.

          When the user launches the Omniscript, the elements specified in the Seed Data JSON section contain the static values.

           
          Loading
          Salesforce Help | Article