Salesforce Certified Platform App Builder — Question 45
Universal Containers uses a custom object called Projects. When managers assign projects they set a custom field on the Project record called Estimated Hours.
Once set, users should be able to decrease but not increase the value.
How can an app builder meet this requirement?
Answer options
- A. Create a validation rule that uses the PRIORVALUE function
- B. Create a process builder to update the record type
- C. Create a formula field that uses the PREVGROUPVAL function
- D. Create a formula default value for the custom field
Correct answer: A
Explanation
The correct answer is A because a validation rule using the PRIORVALUE function can compare the current value of the Estimated Hours field with its previous value, allowing only decreases. Option B is incorrect as modifying the record type does not address the requirement of controlling field value changes. Option C is not suitable since the PREVGROUPVAL function is not relevant for this scenario, and option D does not provide a mechanism to enforce the required value change restrictions.