Valid PDI Dumps shared by ExamDiscuss.com for Helping Passing PDI Exam! ExamDiscuss.com now offer the newest PDI exam dumps, the ExamDiscuss.com PDI exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDI dumps with Test Engine here:
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds "Decommissioned" as a picklist value for the Status _c custom field within the Container _c object. Which two approaches could a developer use to enforce only Container records with a status of "Decommissioned" can be deleted? Choose 2 answers
Correct Answer: B,D
* Apex Trigger (Option B): * An Apex trigger can be written on theContainer__cobject to prevent deletion unless theStatus__cfield value is "Decommissioned". * This allows custom logic to be executed during the deletion process. :Apex Triggers Documentation Validation Rule (Option D): A validation rule is typically used to enforce conditions during record creation or update. However, it cannot directly restrict deletions. To ensure deletion restriction, an Apex trigger is more effective. Not Suitable: Option A(Before record-triggered flow): Flows triggered "before delete" are not available. Option C(After record-triggered flow): These occur after a record is deleted, so they cannot prevent the deletion process.
Recent Comments (The most recent comments are at the top.)
Long - Dec 18, 2025
Validation Rules are not supporting and Before Trigger flow now supports Before Delete
Recent Comments (The most recent comments are at the top.)
Validation Rules are not supporting and Before Trigger flow now supports Before Delete