Salesforce Certified Platform App Builder — Question 470
At Universal Containers, the VP of Service has requested a visual indicator flag on each case, based on the case priority. High-priority case should be flagged red, medium-priority should be flagged yellow, and low-priority cases should be flagged green.
Which two formulas will accomplish this requirement? (Choose two.)
Answer options
- A. IMAGE( CASE( Priority, "Low", "/img/samples/flag_green.gif", "Medium", "/img/samples/flag_yellow.gif, "High", "img/samples/flag_red.gif", "/s.gif"), "Priority Flag")
- B. IF(ISPICKVAL(Priority, "Low"), "/img/samples/flag_green.gif , IF(ISPICKVAL(Priority, "Medium"), "/img/samples/flag_yellow.gif", IF(ISPICKVAL(Priority, "High"), "/img/samples/flag_red.gif, "/s.gif") ) )
- C. CASE( Priority, "Low", "/img/samples/flag_green.gif", "Medium", "/img/samples/flag_yellow.gif", "High", "/img/samples/flag_red.gif", "/s.gif")
- D. IMAGE( IF(ISPICKVAL(Priority, "Low"), "/img/samples/flag_green.gif", IF(ISPICKVAL(Priority, "Medium"), "/img/samples/flag_yellow.gif", IF(ISPICKVAL (Priority, "High"), "/img/samples/flag_red.gif", "/s.gif) ) ), "Priority Flag")
Correct answer: A, D
Explanation
Option A correctly uses the CASE function to return the appropriate image based on the priority, while option D also uses the IMAGE and IF functions correctly to return the right visual flag. Options B and C have syntax errors or do not properly implement the logic needed to achieve the required visual indicators for case priorities.