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
NerijusNerijus 

opportunity owner email query returns ID

HI there,

I'm trying to query opportunity owner email address but getting back owner id.
Opportunity oppo = [SELECT Owner.Email FROM Opportunity WHERE Id = '0060C000002q4e2QAA'];
How do I get actual email address?
Best Answer chosen by Nerijus
NerijusNerijus
Nevermind I printed the whole object and not oppo.Owner.Email