If I have the following notes in salesforce:
How do I query it with SOQL?
I cannot get the data with the following query:
"SELECT Body, IsDeleted, IsPrivate, OwnerId, ParentId, Title FROM Note"
Is there something else I have to do?
This is not Note object. It is
You can query like
[SELECT Id,LinkedEntityId,ContentDocumentId, ContentDocument.Description FROM ContentDocumentLink WHERE LinkedEntityId='00Q9000000PjzOm'];
LinkedEntityId is the record id. Pass your record id