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
Dan Dodd 3Dan Dodd 3 

Update Custom Rich Text field in Case from Email Message BodyHTML

Using process builder to update a custom field on a new CASE record does not pull in the EmialMessage.htmlBody as expected.
I tried this with workflow as well.

Both allow me to make an action pulling from that field but do not update the record.

What do I need to do to get the htmlBody of a cases email (Email-to-case) so I can write it in a custom field
How do I referance a case EmailMessage textHTML field from a trigger before insert?

I tried this with a work flow and process builder it. Both allowed me to access the fields in the builder but does not add the data when it ran because the fields are empty.. 
The data displays in a SQOL query in the developer console but not sure how to grab it from the case.
In before insert trigger:
for(case cs:{ 
  // this works as expected as a test 
  // that I can do something in this trigger 
  cs.lutd_Description_Rich__c = cs.description

// Need something like:
  cs.lutd_Description_Rich__c = case.source.emailMessage.htmlBody 

// & etc..