0

I queried the ContentVersion object by following soql, VersionData field is not retrieved in results.

SELECT Id, Title, VersionData, PathOnClient, ContentSize FROM ContentVersion WHERE Id=<Id>

This is the log of the SOQL result, only the VersionData field is missing.

ContentVersion:{Id=<id>, Title=ABC.jpg, PathOnClient=ABC.jpg, ContentSize=1234, FileType=JPG}

As per this document, we don't have a way to provide FLS for ContentVersion fields. The class executing SOQL is defined as without sharing. The logged-in user has a Standard User profile. What am I missing here?

2
  • 5
    Are you certain that log is for that SOQL? It displays FileType, yet that field isn't in the query either. Dec 20, 2021 at 21:23
  • Yes, FileType is retrieved, even though it is not in SOQL. Dec 21, 2021 at 6:14

0

You must log in to answer this question.