OMNISTUDIO-CONSULTANT practice question 25 of 25

How many levels deep can reusable OmniScripts be nested?

Full set: 143 questions
Answer options
A: 2
B: 5
C: Unlimited
D: 1 Correct answer
Correct Answer:
D. 1
Explanation

To maintain performance and prevent excessive complexity or potential infinite loops, OmniStudio enforces a limit on nesting reusable OmniScripts. A parent OmniScript can invoke a reusable child OmniScript, but that child OmniScript is not permitted to call another reusable OmniScript. This design establishes a maximum nesting depth of one level for reusable components.

Why Incorrect

A. A nesting depth of 2 is not permitted; a reusable OmniScript cannot call another reusable OmniScript.
B. A nesting depth of 5 is well beyond the platform's limit and would introduce significant performance and maintenance challenges.
C. Unlimited nesting is not allowed as it would lead to governor limit exceptions, performance degradation, and unmanageable complexity.

References

Salesforce OmniStudio Developer Guide, "OmniScript Element," Section: "Calling a Reusable OmniScript". The documentation states, "A reusable OmniScript cannot call another reusable OmniScript." This implies a single level of nesting.

Scroll to Top