function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rutul ShahRutul Shah 

Unable to fetch all the notes for all the orgs when I call the API using OAuth..

When i call Rest API using OAUTH, i m unable to get notes for the Accounts for all orgs.. can u help me?
Rutul ShahRutul Shah
Its bit urgent..
Daniel BallingerDaniel Ballinger
Does the user you are establishing the session with via OAuth have access to all the records?
Likely they aren't allowed to see every record.

It's a bit of a broad stroke, but try giving their profile the "View All Data" permission. If you can then see all the expected records you know it is an access issue.
Rutul ShahRutul Shah
Thanks Daniel for the reply.
Actually, the problem I m facing is I get the Notes of the Acoounts for few orgs and for some I m unable to view them.. The permissions set are given.. So would that be an issue with API call or permissions?
Daniel BallingerDaniel Ballinger
If you can't view the expected Notes and Accounts when logging directly into the Salesforce Org using the standard Web UI then it is a permission issue.

Otherwise it will be a problem with the API call.