Soubhik
12/21/2019 - 10:35 AM

Example 6

Undelete Account

trigger UndeleteAccount on Account (after undelete) {
    
   List <Account> acclist= [select id,undeletedRecord__c from Account where id in : trigger.new];
    
    for(Account undel : acclist)
    { m          m mmmjjcv                    
        undel.undeletedRecord__c=true;/
    }
    update acclist;
    

}