Embed an Omniscript in Another Omniscript (Managed Package)

For the managed package runtime, an Omniscript can be reused in one or more existing Omniscripts. Reusing Omniscripts enables you to build a variety of smaller scripts and then piece them together into one or more parent scripts. Embedded Omniscripts behave just like other Omniscript elements.

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

Note
Note A reusable Omniscript cannot contain another reusable Omniscript. Additionally, no element in a reusable Omniscript can have the same name as an element in the parent script. Reusable Omniscripts adopt the script configuration of the parent script.
Note
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.
  1. In the Omniscript you want to reuse, click Setup, and check the Reusable checkbox.
  2. Activate the reusable Omniscript.
  3. Navigate to the Omniscript that will host the reusable Omniscript.
  4. In your Omniscript's Build panel, expand the Omniscripts section.
  5. Locate the reusable Omniscript and drag it into the canvas.
  6. Preview your Omniscript to test the behavior.