ADM-201 · Question #359
ADM-201 Question #359: Real Exam Question with Answer & Explanation
The correct answer is A: Use the equals operator and {!$GlobaIConstant.True> as the value.. To skip the first screen in a flow if a checkbox field 'High Value Customer' is true, the administrator should configure a decision element to use the 'equals' operator and compare the field's value to the global constant {!$GlobalConstant.True}.
Question
Cloud Kicks wants to update a screen flow so that if the checkbox field High Value Customer is set to true, the first screen is skipped and the user is directed to the second screen. How should the administrator configure the decision element?
Options
- AUse the equals operator and {!$GlobaIConstant.True> as the value.
- BUse the equals operator and "High Value Customer" as the value.
- CUse the contains operator and {!$GlobalConstant.False} as the value.
- DUse the contains operator and "High Value Customer" as the value.
Explanation
To skip the first screen in a flow if a checkbox field 'High Value Customer' is true, the administrator should configure a decision element to use the 'equals' operator and compare the field's value to the global constant {!$GlobalConstant.True}.
Common mistakes.
- B. Comparing a boolean checkbox field to a string literal like 'High Value Customer' is incorrect because a checkbox's value is boolean, not its field label as a string.
- C. The 'contains' operator is designed for text comparisons and is inappropriate for evaluating a boolean checkbox field, and comparing against
{!$GlobalConstant.False}would check for the opposite condition. - D. The 'contains' operator is not suitable for boolean fields, and using a string literal as the value will not correctly evaluate the state of a checkbox field.
Concept tested. Flow Decision element for checkbox fields
Reference. https://help.salesforce.com/s/articleView?id=sf.flow_ref_variables_globalconstants.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.