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
sainath chalamcherla 9sainath chalamcherla 9 

how can we control CURD permissions on emailmessage object

HI All,

we have a requirement where we want to prevent users from deleting emailmessages of email related list under cases.

is there a way where we can control through CURD permissions or any other solution would help here.

Thank you

Regards
Sainath.
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Sainath,
There is no OOTB setting for this.Have to use apex tirgger to prevent deletion.
Please refer below links which might help you in this
https://success.salesforce.com/answers?id=90630000000DBZAAA4
https://salesforce.stackexchange.com/questions/123712/how-to-prevent-the-related-list-records-from-edit-and-delete-function

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards