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;
}