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

Grab owner name from Case object (possibly using OwnerId reference)?

Hi everyone,

I'm interested in displaying the owner name of a Case object, as well as other case details, on a page. Using Apex Explorer, I've noticed that I have access to 'OwnerId', labeled as a reference. However, I cannot access the owner (user) information directly in the same query.

I have actually been able to accomplish a similar feat (displaying the contact's name) using the ContactId reference, selecting 'ContactId, Contact.Name', but I apparently cannot do the same with the owner.

Has anybody found a way to drill down for deeper information such as this? Another option I see would be sticking all the owner id's in a long string, then querying for the names with the "IN" keyword, then manually matching them to their respective objects.


Case case=new Case();

User   user=[select Id,Name,Alias from User where Id=:case.OwnerId];

then you can get owner name by


is this something I would put in eclipse force ide to activate?