You need to sign in to do that
Don't have an account?
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 user.name
is this something I would put in eclipse force ide to activate?