Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Can I write a 'after insert' trigger on EmailMessage object to edit the TextBody of incoming Mail?
Is it possible in Salesforce?
The EmailMessage object permits the TextBody field to be updated
Triggers can certainly be written on EmailMessage including afterInsert triggers.
Note that some fields on EmailMessage can't be updated like Incoming and ParentId (the case it is associated to). See the doc
Required, but never shown