Salesforce Certified Omnistudio Developer free question 10 / 10 · Domain 6: Troubleshooting and Debugging
An Omniscript uses multi-level repeat blocks. In preview, the JSON shows the Formula elements that sit in the inner blocks as absent, null, or false, although the expressions are correct. What should the developer change?
- Place the Formula elements in the top-level block, not the inner blocks
- Change the inner blocks into Edit Blocks and run the preview again
- Select Enable Repeat on the Formula elements to repeat them with the block
- Wrap the Expression in COUNTIF to count the values across the blocks
Show the answer and explanation
Answer: A
Why this is correct
The Help page on accessing data in repeatable blocks gives a guideline for Formula elements in multi-level repeat blocks. If the Formula elements are not placed in the top-level block, they appear as null or false, and the page says the behavior can be verified by inspecting the formula elements in the Omniscript preview JSON. The elements are either absent or return null or false, regardless of the intended formula logic. Moving the Formula elements into the top-level block removes the symptom.
Why the other options are wrong
"Select Enable Repeat on the Formula elements to repeat them with the block" … Enable Repeat is a property of the block, as the page's examples show. The null result comes from where the Formula element sits, not from a missing repeat setting.
"Wrap the Expression in COUNTIF to count the values across the blocks" … The page uses COUNTIF to read data from a different block and count entries that meet a criterion. That changes the calculation, not the null caused by the position of the element.
"Change the inner blocks into Edit Blocks and run the preview again" … Edit Blocks are repeatable too, as the page notes. The guideline concerns where the Formula element sits in a multi-level repeat structure, not which type of block holds it.
Key points
In multi-level repeat blocks, keep Formula elements in the top-level block or they show up as null or false.