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
tlaurietlaurie 

Opportunity Owner

I am getting opportunity information through code.  I want to get the Opportunity Owner.  I can get the Owner_id but when tried to access the owner I get the error code "Invalid field".  How can I get the owner of the opportunity?
SuperfellSuperfell
select owner.name from opportunity