Seed Data Into an Omniscript (Managed Package)

For the managed package runtime, 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.

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

The Seed Data JSON property should be used with static values that seed during the initial load of the Omniscript. In order to set values using formulas or with information entered into the Omniscript after the initial load, see Set Values in an Omniscript.

  1. In the Omniscript's Script Configuration, find Seed Data JSON section and click +Add New Key/Value Pair.
  2. Enter the name of the element to prefill in the left text field. Enter the desired value of the element in the right text field. 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.
  3. When the user launches the script, the elements specified in the Seed Data JSON section contain the static values from the Script Configurations.
    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.

  4. You can also 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. For example, 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.