For the managed package runtime, using the Conditional View property in the parent Omniscript, you can run an embedded Omniscript only under certain conditions.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Learn how to embed an Omniscript in other Omniscripts. See Embed an Omniscript in Another Omniscript (Managed Package).
- From the Properties section of the Reusable Omniscript element of the parent script, expand Conditional View.
- Click the Show Element If True link. The Edit Show Hide Rules window opens.
- Create conditions as described in Use the Conditional View Property to Conditionally Display Elements (Managed Package).
- Click Save.
Note Elements in the embedded Omniscript run only if the conditions are true for
those elements. If the conditions change while the embedded Omniscript is running,
subsequent embedded Omniscript elements don't run. If the conditions are false for any
embedded Omniscript elements, those elements are skipped.
Note Make sure that
each embedded Omniscript defines unique Element Name JSON nodes
in its Set Values elements. If two child Omniscripts of the same parent set values for
the same JSON nodes, only values from the first child Omniscript are set, even if both
children run conditionally.