Hi,
Can you please help me out by answering these questions.
1. A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customer calls in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.
What should the developer use to satisfy this requirement in the most efficient manner?
A. Flow Builder
B. Lightning Component
C. Approval Process
D. Apex Trigger
2. Managers at Universal Containers want to ensure that only decommissioned containers are able to 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 tool should the developer use to enforce only Container records with a status of “Decommissioned” can be deleted?
A. After record triggered flow
B. Validation Rule
C. Before record triggered flow
D. Apex trigger
Thanks :)
2. Ans: Apex trigger.
Validation Rule can't be imposed on Deletion. Using the Before Delete Apex trigger, we can implement this check & throw errors when the user tries to delete a record is the status is not Decommissioned.