Rename Data JSON Nodes (Managed Package)

For the managed package runtime, simplify and rename JSON node names by accessing the values in an Omniscript's data JSON. Access data sent into the Omniscript's data JSON from a parameter, an action's response data, or an element using merge fields.

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

To rename a node:

  1. From Omniscript Designer, click Preview.
  2. Preview the Omniscript and view the resulting data JSON.
  3. Locate the JSON node in the data JSON that you wish to rename.
  4. Add a Set Values Action to the Omniscript.
  5. In the Set Values Action, click Add New Element Value.
  6. In the Element Value Map, in the Element Name field, enter the new JSON node name.
  7. In the Element Value Map, in the Value field, enter the name of the JSON node you wish to rename using merge field syntax to map it to the new JSON node.

    Here's an example of a Set Values action's Element Value Map that renames responses and parameters:

    Element Name Value
    FirstName %FirstNameHTTPResponse%
    LastName %LastNameHTTPResponse%
    Age %AgeParameter%
  8. Preview the Omniscript again and view the new JSON node name.