• Narresh kumar
  • NEWBIE
  • 0 Points
  • Member since 2017
  • Acer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
here my class is

               case cse=[select id,ContactEmail,Contactid,Email__c,CaseNumber from case where id=:caseid];
               
               Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); 
               mail.setTargetObjectId(cse.Contactid);
              
               mail.setSubject('New Case created ');  
               body = cs.Email__c;
               
               mail.setHtmlBody(body);
               mail.setSaveAsActivity(true);
               Messaging.SendEmailResult[] result = Messaging.sendEmail(new Messaging.SingleEmailMessage[]{mail}); 
               
     
Here activity History is stored in contact detail page related list 
But  that is not my  Requirement  
i want store Activity history in case dateil page related list