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
Joseph AJoseph A 

Accessing ContentNote object with REST API

Hi, I'm trying to access ContentNote with REST API and each query results in zero records althrought there are at least 600k records. Selecting data from other objects works fine. Any ideas?
Raj VakatiRaj Vakati
URI 

Method GET 
/services/data/v43.0/sobjects/ContentNote/<RECORD_ID?



For POST 


URI : -/services/data/v43.0/sobjects/ContentNote/

Method is post 


Body
{
  "Content" : "VGhpcyBpcyBhIDxiPnNhbXBsZTwvYj4gbm90ZQ==",
  "Title" : "Sample note"
}

 
Joseph AJoseph A
I'm trying to use SOQL: "SELECT Id FROM ContentNote LIMIT 100"
Joseph AJoseph A
/services/data/v33.0/query
Raj VakatiRaj Vakati
Try this
 
/services/data/v43.0/query?q=SELECT Id FROM ContentNote LIMIT 100

 
Joseph AJoseph A
Just tried to play with version... zero results... I'm wondering is there is something is blocking users access in SF settings and needs to be enabled? The scenario is: a user logins with SF credentials and grants access. Once token is obtained it queries SF.
Joseph AJoseph A
BTW, workbench returns zero results as well
SBBcSBBc
Were you able to figure this out? Running into a similar issue with my API user not being able to access content that it didn't create.
Samad KhanSamad Khan
My Notes has Title-Task1 and Content is "Talk to customers"

When I run following query:SELECT Title,Content FROM ContentNote
Output is:'Title', 'Task2'), ('Content', '/services/data/v42.0/sobjects/ContentNote/0692x000000WFDKAA4/Content')])]

how to get my actua content from this