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
Gary Payne 2Gary Payne 2 

How to prevent editing of the Email's HTML Body field?

Requirements are stating they don't want users to edit HTML Templates after they have been entered into the email. Is it even possible to prevent editing an HTML Template in the SendEmail operation?  Note that I have marked the HTML Body as Read Only on the EmailMessage object's page layout, but I can still edit the HTML Template. Profile Object Settings for the EmailMessage object do not allow editing of the Read and Edit settings for it's fields, like HTML Body.
VinayVinay (Salesforce Developers) 
Hi Gary,

Can you elaborate more?

Check below references not sure if that answers your query.

https://trailblazers.salesforce.com/answers?id=90630000000hDfCAAU
https://trailblazers.salesforce.com/answers?id=90630000000hvklAAA

Thanks,