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
m22bakerm22baker 

Email Message character count

Is there an Apex call that will return the number of characters in an Email Message object?

 

There are several occasions where our service org is sent an email that contains a long chain of emails, or a large spreadsheet within the body, which quickly chews up the max character count of 32k for an Email Message because of all the embedded HTML/Outlook encoding. The will cause some of the email to be cut off when view by our service reps, and can sometimes lead to us missing key pieces of information. It would be nice to be able to flag anytime an Email Message's character count = 32k so the rep will be aware that it could have been cut short, and to go check the original for for any missing info.

 

Thanks.