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
aditya3aditya3 

Trigger Scenario

Hi all,
Salesforce -> Cases -> Emails (stored as activity history). Write a trigger to copy these emails as "Comments", every time an email is received.
 Just like SFDC -> Cases -> Emails, SFDC -> Cases -> Comments.

please guide me in this scenario ,I want to copy all the emails to comments
 
NagaNaga (Salesforce Developers) 
Hi Aditya,


If you do want to go down the route of turning emails into case comments here would be a solution:

User-added image
Please let me know if this helps

Best Regards
Naga Kiran