+ Start a Discussion
minciminci 

Apex trigger - udelete

Hi,

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) 
Novo_ArtisNovo_Artis

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.