You need to sign in to do that
Don't have an account?
Kal Kumar
SOQL query for Notes object
I am trying to understand why I cannot query the 'Notes' object directly, but can only use it via the Account relationship.
Below query does not work.
select CreatedBy.Name from Notes.
But this query works
select Name, (select CreatedBy.Name from Notes) from Account
Below query does not work.
select CreatedBy.Name from Notes.
But this query works
select Name, (select CreatedBy.Name from Notes) from Account
Greetings to you!
You need to use Note instead of Notes.
In relationship queries, you need to use Child Relationship Name. Notes is the child relationship name. So, for Parent-Child relationship query you have to use below SOQL:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas