Salesforce Certified Platform App Builder — Question 126
Contracts must be approved before the status is set to Finalized.
How can this requirement be met?
Answer options
- A. Add a final approval action in the approval process to update a field on the contract and use a validation rule to check this field when the contract status is changed to Finalized.
- B. Use a trigger on the contract object to check the contract has been approved when the status is changed.
- C. Use Process Builder to check the contract is approved when the contract is edited and the status is set to Finalized.
- D. Add a validation action in the approval process to ensure the status is not set to "Finalized" before the contract is approve.
Correct answer: A
Explanation
The correct answer is A, as it effectively combines the use of a final approval action with a validation rule to ensure that the contract cannot be finalized without prior approval. Option B, while using a trigger, does not incorporate a validation mechanism to prevent the status change. Option C relies on Process Builder, which is less effective than a validation rule for this purpose. Option D incorrectly suggests that a validation action can stop the status change without first ensuring the approval process is complete.