+ Start a Discussion

Is there an easy way to get the context user's email address in Apex ?

I dont see a UserInfo.getUserEmail() method to use in Apex.


In formula fields you can use $User.Email


Is the only way in Apex to run a Select statement ?

I think you have to use a SOQL query.
I was afraid so. It would be a useful addition to the UserInfo class.