Populate Elements (Managed Package)

For the managed package runtime, populate subsequent input elements with values from data JSON, formula operators, functions, concatenations, and static values. Prefill an element directly from an Omnistudio Data Mapper or Action response whenever possible. When a previous element assigns a value to a subsequent input element's Name, the subsequent input element is populated with the assigned value.

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

For example, suppose a Set Values action has an Element Value Map that assigns an Element Name of FirstName with a Value of John. A subsequent Text element with a Name of FirstName populates with the value John.

Note
Note

When populating an element using Set Values, data types must match. For example, you cannot set a Text element with a value from a Number element.

To populate an element using Set Values:

  1. Add a Set Values action to the Omniscript.
  2. In the Set Values Properties, click Add New Element Value.
  3. In the Element Value Map, in the Element Name field, enter the name of an input element in a subsequent Step element.
    Note
    Note

    When the Element Name maps to an existing element in the Omniscript, the element's Type appears between the Element Name field and the Value field.

    For example, suppose the subsequent Step element has Text elements named FirstName and LastName, a Number element named Age, and a Date element named Date.
  4. In the Element Value Map, in the Value field, enter a literal value, a formula, or the name of another JSON node using merge syntax.
    For example:
    Element Name Value
    FirstName "John"
    LastName %LastNameHTTPResponse%
    Age %AgeParameter%
    Date =TODAY()
  5. Preview the Omniscript to ensure the fields populate correctly.
    For example, here's how the subsequent Step element might look in Preview, with the FirstName, LastName, Age, and Date fields populated:
    image