function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Apex trigger - udelete


Can someone please tell me how can i acess the sObjects that provoced the undelete trigger?


I know that new and old are useless in that case.

SO what is the solution?

Thank you!

Best Answer chosen by Admin (Salesforce Developers) 

In the apex documentation there is info in the "Invoking Apex" chapter that explains the use of the "undelete" trigger event.

There is also the context variable "isUndelete" if you wish to use multiple events in the same trigger.