Salesforce Certified Marketing Cloud Engagement Developer free question 6 / 10 · Domain 3: API
A Retrieve must return records where a numeric property is between 10 and 50. How does the SimpleFilterPart express this?
- SimpleOperator greaterThan with the two Values 10 and 50
- SimpleOperator between with one Value entry, 10-50
- SimpleOperator IN with the two Values 10 and 50, covering the numbers in between
- SimpleOperator between with two Value entries, 10 and 50
Show the answer and explanation
Answer: D
Why this is correct
A SimpleFilterPart represents a single condition of an SQL WHERE clause. BETWEEN takes two Values, IN takes several, and the other operators take one. For a range from 10 to 50, use between with the Values 10 and 50.
Why the other options are wrong
"SimpleOperator between with one Value entry, 10-50" … The page says the BETWEEN operator requires two Values.
"SimpleOperator IN with the two Values 10 and 50, covering the numbers in between" … IN handles multiple Values and matches the values that are listed. It does not cover a range.
"SimpleOperator greaterThan with the two Values 10 and 50" … The page says all operators other than BETWEEN and IN require one Value.
Key point
between takes two Values. IN takes a list. Others take one.