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
Sudeep DubeSudeep Dube 

Email Status not change by custom apex code outbound Email send

i write code for reply a email which is contained in EmailMessage object . email is send successesfully and i stored new sent email into EmailMessage with repltto field   but the parent email for which i made a reply is not change status field, it remains read . i want to change the status field read to replied after send the email for reply an email by my custom code .
I can not update parent email the EmailMessage status field because it is not writable . other way for this i used setreplyto method also but it still i cant get any solution  .........thanks in advance
ShashankShashank (Salesforce Developers) 
Unfortunately, emailmessage status is read-only and will only change to replied when someone manually replies to the email. I would recommend you to create an Idea regarding this here: https://success.salesforce.com/ideaSearch