I am new to Salesforce and learning Trigger.

In trigger, we do have two types before, after and they have DML options like insert, update, delete and undelete.

But there is no before undelete event. Why?

1 Answer 1


In reality the record is available in the recycle bin, but the field isDeleted of this record is set to True hence, the before undelete trigger wouldn’t be able to see the records(values) that it needs. Due to this reason, there is no before undeleting operation available.

Hope it answers your question.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .