Which type of trigger is most appropriate to create if a developer - ProProfs Discuss
Topics
Products
Follow Us:

Which type of trigger is most appropriate to create if a developer needs to create an audit trail for records that are sent to the recycle bin?



A. Before delete
B. After undelete
C. After delete
D. Before undelete

This question is part of Salesforce Developer 1 2019
Asked by Pjazurin, Last updated: Mar 27, 2020

+ Answer
Request

4 Answers

Roby Sha

Roby Sha

Answered Feb 06, 2020

'After Delete' since we're not modifying the Object/Records itself.

 

Edgar Chivichon

Edgar Chivichon

Answered Jul 28, 2019

It should be "Before delete" according to the link.

It is not possible to use "after delete"."The object has already been deleted."

 

Supersharp

Supersharp

Answered Jul 06, 2019

It should beafter deletebecause you want to track records deleted, not undeleted.

 

pjazurin

Pjazurin

Answered Jun 28, 2019

After undelete
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.