You are here:
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.
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.
- Open the Omniscript Setup panel.
-
In the Omniscript's Setup, find Seed Data
JSON section, and provide information to prefill the Omniscript during the
initial load.
- Click Add New Key/Value Pair.
- In the Key field, enter the name of the element to prefill.
-
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. -
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.

