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
Suman BonthalaSuman Bonthala 

how to post

trigger trgcpundelete on Opportunity(after undelete)
 {
     set<id>oppid= new set<id>();
     if(trigger.isafter&&trigger.isundelete)
      {
         FOR(Opportunity o : trigger.new)
         {
          oppid.add(o.id);
         }
      }  
     list <Customer_Project__c> cplist = [select id,name,Opp_relation__c from Customer_Project__c where isdeleted=true and Opp_relation__c IN:oppid];
     undelete cplist;
}
abhishek singh 497abhishek singh 497
Hello Suman,
Can you explain your requirement more??

Thanks & Regards,
Abhishek Singh.
Suman BonthalaSuman Bonthala
Hello
Abhishek Singh,
thanks for your resonse my requirement is whenever i undelete opportunity its related customer projects also undeleted