Salesforce Certified Platform Developer II — Question 240
Universal Containers is implementing a new approval process for expense reimbursements. The process requires complex logic to determine the appropriate approver based on factors such as expense amount, employee role, and project type. The solution should allow for flexibility and future changes in the approval rules.
Which approach would be the most suitable for implementing this logic?
Answer options
- A. Use the Salesforce Approval Process feature and define multiple approval steps with entry criteria and approval assignments.
- B. Create a custom Apex class with a method to determine the appropriate approver based on the given criteria.
- C. Develop a custom Lightning component to handle the approval logic and integrate it into the expense reimbursement record page.
- D. Implement a custom formula field to calculate and determine the appropriate approver based on the given criteria.
Correct answer: A
Explanation
The Salesforce Approval Process feature is designed to handle complex approval workflows with multiple steps and criteria, making it the best choice for this scenario. While a custom Apex class or Lightning component could also work, they would require more development effort and would lack the built-in flexibility of the Approval Process feature. A formula field, on the other hand, is too limited for the dynamic approval logic needed here.