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
lxchlxch 

Email Message - Replied

Hi all, I'm working on maintaining the Email Message Status. I appreciate if anyone knows how you can change New => Replied by apex.

I made a datatable of EmailMessages (works like email Inbox) and trigger onrowaction to update the email status from New => Read by Apex. However, I never know i we can change from New => Replied.

You can change manually press the button "Reply" or "Reply All" on each email record but this forces the users to leave the Email Mesage datatable and go to the Email Mesage record.

In this page, it's clealy said only users can change only the Status from New to Read by Apex or Flow. But is there any way to achieve to make the status from New => Replied.
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_emailmessage.htm

Thanks!