You need to sign in to do that
Don't have an account?
Vinny Gebhart 10
Help with a SOQL query between custom object and standard object
Hi all,
Trying to query from a custom object, retrieve the owner (user), and return the related contact field on the user record.
select ID, OwnerID, Name, owner.UserName, owner.IsActive, Owner.ContactID
from CustomObj1
The user type is Customer Community portal user
Trying to query from a custom object, retrieve the owner (user), and return the related contact field on the user record.
select ID, OwnerID, Name, owner.UserName, owner.IsActive, Owner.ContactID
from CustomObj1
The user type is Customer Community portal user
Use below Query
select ID, OwnerID, Name, CustomObj1.owner.UserName, CustomObj1owner.IsActive
from CustomObj1
Note:
CustomObj1.Owner.ContactID Coz there is no relationship between your custom object and contact.
Mark Best ANSWER if its works for you..
Thanks
karthik