Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Embed an Omniscript in Another Omniscript

          Embed an Omniscript in Another Omniscript

          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.

          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.

          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 select Reusable.
          2. Activate the reusable Omniscript.
          3. Navigate to the Omniscript where you want to use the reusable Omniscript.
          4. From the elements panel, expand the Omniscripts section.
          5. Locate the reusable Omniscript and drag it into the canvas.
          6. Preview your Omniscript to test the behavior.

          Activate and Deactivate Embedded Omniscripts

          When you activate or deactivate an embedded script, Salesforce updates all activated parent Omniscripts to reflect the change.

          1. From the Setup section of the embedded Omniscript, activate or deactivate the Omniscript.
          2. Verify the Affected Omniscripts (any active Omniscript that this form is embedded in), and click Proceed.
            image
          3. After the parent scripts update, click Done.

          Conditionally Run Embedded Omniscripts

          Using the Conditional View property in the parent Omniscript, you can run an embedded Omniscript only under certain conditions.

          1. From the Properties section of the reusable Omniscript element of the parent Omniscript, expand Conditional View.
          2. Click the Show Element If True link. The Edit Show Hide Rules window opens.
          3. Create conditions as described in Conditionally Display Omniscript Elements.
          4. Click Save.

          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.

           
          Loading
          Salesforce Help | Article