You need to sign in to do that
Don't have an account?
Dan 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:
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: Trigger.new){ // 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.. }