You need to sign in to do that
Don't have an account?
Zachariah Rosenberg
SOQL: Accessing the Contact Owner Field
Hello,
Im trying to write a SOQL query that will grab one of the Contact object's standard fields "Contact Owner", which is a Lookup(User) field.
The field name is "Owner", but when I try to query
SELECT Contact.Owner FROM Contact
I get an error stating that there is no such field.
How can I grab this field?
Thank you!
Im trying to write a SOQL query that will grab one of the Contact object's standard fields "Contact Owner", which is a Lookup(User) field.
The field name is "Owner", but when I try to query
SELECT Contact.Owner FROM Contact
I get an error stating that there is no such field.
How can I grab this field?
Thank you!
Run the above in Developer Console--Query Editor
All Answers
Try the below:
Select OwnerId from contact
Thanks,
balaji
Run the above in Developer Console--Query Editor
c.OwnerId.