I would like to write a SOQL
query which goes from Account > Contact > User(s)
Something like this:
[SELECT PersonContactId, PersonContact.Users, PersonEmail FROM Account WHERE ...]
But I get this error:
No such column 'Users' on entity 'Contact'.
I also get this error:
No such column 'PersonContact' on entity 'Account'
But the Account
object has a field called PersonContactId
with a relationship name PersonContact
And the Contact
object has a child relationship named: Users
So therefore, I should be able to do PersonContact.Users
Questions
- What am I doing wrong?
- How can I get the
User
collection when queryingAccount