OMS-435 practice question 3 of 15

A developer need to configure a calculation procedure to calculation a subtotal using two different depending on whether the input Boolean variable is Customer is set to true or false. How should a developer configure thecalculation procedure to conditionally execute the correct formula?

Full set: 85 questions
Answer options
A: Use two separate Calculation Steps with the Conditional Step property selected: use the ISTRUE(isCustomer) and NOT (ISTRUE) (isCustomer) functions in the Condition syntax.
B: Use two separate Calculation Steps with the Conditional Step property selected: reference just the isCustomer variable in the Conditional syntax (no comparison necessary) Correct answer
C: Use two separate Calculation Steps with the Conditional Step property selected: compare theisCustomer variable directly to the literal true and false values in the Condition syntax.
D: Use a single Calculation Steps with IF statement directly in the formula definition to reference the isCustome variable and conditionally perform the appropriatecalculation.
Correct Answer:
B. Use two separate Calculation Steps with the Conditional Step property selected: reference just the isCustomer variable in the Conditional syntax (no comparison necessary)
Explanation

The most direct and standard method in OmniStudio Calculation Procedures to conditionally execute a step based on a Boolean variable is to use the Conditional Step property. The condition engine can directly evaluate a Boolean variable. For the "true" case, referencing the variable isCustomer is sufficient. For the "false" case, the NOT() function (e.g., NOT(isCustomer)) would be used. This approach is the most concise and efficient, avoiding redundant functions or explicit comparisons, and aligns with the declarative design of Calculation Procedures for creating clear, maintainable logic flows.

References

1. Salesforce Help

OmniStudio

Calculation Procedure Steps: The official documentation describes the Conditional Step property. Examples show that for a Boolean variable (e.g.

isAccount)

the condition can be entered simply as isAccount for the true case and NOT(isAccount) for the false case

confirming that no comparison or extra function is necessary. (Refer to the section on "Conditional Steps" in the Calculation Procedures documentation).

2. Salesforce Trailhead

OmniStudio Calculation Procedures Module: In the "Create a Calculation Procedure" unit

the concept of conditional steps is introduced. The examples and hands-on challenges demonstrate that a Boolean variable from the JSON input can be used directly as a condition to determine if a step should execute. This reinforces the principle of direct variable reference over more complex expressions.

Scroll to Top