2 respuestas
Hello Abhishek ,EmailMessage can be updated only when it's in the Draft status.Update() is supported when an email record is in Draft status, and IsPrivateDraft is false. It is also supported if Status and IsPrivateDraft are true and CreatedBy is associated with the current user. When the email record status is not in Draft status, the IsExternallyVisible field and custom fields only can be updated.Reference -> https://salesforce.stackexchange.com/questions/312390/receiving-illegal-operation-error-on-emailmessage-update-from-contentdocumentlinHope this helps !Thank you.