Not getting any records from ContentVersion in Salesforce SOQL query,

673 views Asked by At

I have an app that gets details of ContentVersion from ContentVersionIds. I'm attempting to retrieve specific details like ContentDocumentId and Title by executing the following SOQL query:

GET https://test.my.salesforce.com/services/data/v34.0/query?q=SELECT Id, ContentDocumentId, ContentSize, FileType, Title FROM ContentVersion WHERE Id='<Content_Version_ID>'

However, for some ContentVersionIds, this query doesn't yield any results. I've also made an attempt to use QueryAll() to determine whether the record has been deleted, but it consistently returns a 404 error with the message "The requested resource does not exist."

What could be the reasons for the API returning no records for some content version? It's worth noting that the access token I'm using to call the API possesses refresh_token, api, and full permissions.

0

There are 0 answers