CRT-403 practice question 11 of 35
The Service Manager provided the app builder with color code requirements for case age on open cases. New cases populate a green circle Day-old cases populate a yellow circle Three-day-old cases populate a red circle How should an app builder implement this requirement?
Full set: 291 questionsA formula field is the most appropriate and efficient solution. It can use the IMAGE() function in conjunction with conditional logic (e.g., an IF() statement) to display different images based on the case's age. The formula would calculate the difference between the case creation date and the current date (NOW() - CreatedDate) and render the corresponding green, yellow, or red circle image. This is a standard declarative feature that directly meets the visual requirement without needing code or user interaction.
B. Quick Action: Quick Actions are user-initiated shortcuts to perform tasks like creating records or logging calls, not for passively displaying a visual status indicator.
C. Custom Button: A Custom Button requires a user to click it to initiate an action; it cannot be used to dynamically display a status image on a record page.
D. Lightning Web Component: While an LWC could achieve this, it is a programmatic solution. Salesforce best practices advocate for using declarative tools like formula fields when they can meet the requirement.
1. Salesforce Help, Formula Operators and Functions I–Z: The IMAGE() function is documented as the standard way to display an image in a formula field. The documentation states, "Inserts an image... Use it in formula fields...". The IF() function is also detailed for applying the required conditional logic based on case age.
2. Salesforce Help, Calculate Field Values With Formulas: This guide explains, "A formula is an algorithm that derives its value from other fields, expressions, or values... You can use them in... formula fields." This supports using a formula to calculate the case age and determine the correct color.
3. Salesforce Platform App Builder Certification Study Guide (SU23), Section: Business Logic and Process Automation: This guide emphasizes using declarative tools for business logic. It outlines the capabilities of formula fields for calculations and dynamic outputs, which aligns directly with solving this requirement without resorting to programmatic solutions like a Lightning Web Component.
Keep practicing
Take the free CRT-403 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CRT-403 practice questions
- Question 1Universal Containers is adding drone delivery to service offerings, and the developer has…
- Question 2An app builder at Ursa Major Solar has been working on a new custom app in a sandbox that…
- Question 3An app builder would like to streamline the user experience by reflecting summarized calc…
- Question 4The services manager wants to make sure the team enters case priority consistently. What …
- Question 5Ursa Major Solar wants to convert the relationship between Galaxy and Star from a lookup …
- Question 6Universal Containers has two types of applicants, hourly and salary. There are separate r…
