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
Mike René KölblinMike René Kölblin 

How to save Email address of first related Email into a Case field?

Hi
We need to save the first email address (from address) of an email, that is created in / related to a case where the field ‘first from address’ is empty into this field.
How is this possible? Unfortunatly I can’t use Email2Case. Do someone have an Apex code for this?
Thank you for your support.
BR
Mike
David @ ConfigeroDavid @ Configero
You can make a trigger on the EmailMessage object and update the related Case.SuppliedEmail if it is blank.  This is the easiest solution to achieve what you want.

Please mark this answer as correct if it helped you.