Salesforce Platform Developer I (legacy) — Question 266
Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage.
Which two strategies can a developer use to accomplish this? (Choose two.)
Answer options
- A. Use an after-save flow.
- B. Use a validation rule.
- C. Use the Process Automation Settings.
- D. Use a trigger.
Correct answer: B, D
Explanation
A validation rule can be used to prevent saving changes to an Opportunity when it is in the Closed/Won stage, ensuring data integrity. A trigger can also enforce this restriction programmatically, providing more control over the record update process. The other options, an after-save flow and Process Automation Settings, do not provide the necessary functionality to restrict editing at the stage level.