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 questionsThe 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.
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.
Keep practicing
Take the free OMS-435 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other OMS-435 practice questions
- Question 1An integration procedure contains a Remote Action element that calls a method of an APEXc…
- Question 2What OmniStudio tool pre-populates the data m a PDF used by an OmniScript?
- Question 4A developer needs to limit the of a DataRaptorExtract to a maximum of one result. How sho…
- Question 5A developer is troubleshooting an Integration Procedure with two elements: A Remote Actio…
- Question 6In a calculation procedure, what is required for the output of a calculation step to be u…
- Question 7A developer creates a DataRaptor Extract to retrieve data to pass to anexternal service. …
