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

Case: Populate e-mail values from User

Hi All,
I'm new to SFDC development.
We are in the midst of configuring Case.
There are two custom fields Employee Name (lookup of user) and Employee E-mail in the Case.
I wanted to perform a functionality such a way that when employee name is selected then corresponding e-mail should be populated in the employee e-mail.
How to implement this functionality?
Your help is appreciated.
Duplicating data is never a good idea, only a last resort.

You can add the user relationship in a custom field and place that on the layout and leverage the hover details feature so that when the mouse is hovered over that part of the layout the email would show.

What if the user changes his email and has 5 outstanding cases?  Now the email on the cases doesn't match the actual email of the user.