Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
0 answers
74 views

Why doesn't ContentVersion Query doesn't respect OFFSET when you include VersionData?

I have some code where I have to be careful about how much ContentVersion data I load into memory at any particular time to avoid blowing the heap limit. I was planning to do an initial query on ...
Aidan's user avatar
  • 14k
0 votes
2 answers
1k views

Not getting any records from ContentVersion in Salesforce SOQ query which we are not owner of

When I am creating a new record (release), I would like to get a file off a related record (inventory) and then create a copy of it on the release. The problem I am facing, is that this only works if ...
Finbar Tracey's user avatar
0 votes
0 answers
575 views

The field VersionData not queried in SOQL for ContentVersion sobject

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> ...
Satishakumar Awati's user avatar
0 votes
1 answer
3k views

Content Version SOQL - WIth custom field in the Where clause Return as null

I have a custom field on Content Version - but When I try to have a SOQL and receive the data its return as null. The next line is working : ContentVersion testContentInsert = new ContentVersion(); ...
Salvation's user avatar
  • 1,209
4 votes
1 answer
7k views

How to query ContentDocument and Custom object's fields at once?

We have 3 objects. OS_Account_Document__c (Custom) ContentDocument ContentDocumentLink I need to query two custom fields (Document_Type__c and Custom_Document_Description__c) from the Custom Object ...
Prakhar Saxena's user avatar
6 votes
2 answers
493 views

Query optimization for ContentVersion

For a project I wrote a query to get all needed ContentVersion records. But after the deployment to full sandbox we have seen the performance issues with it. It only happens for the first time, all ...
Novarg's user avatar
  • 5,294
3 votes
1 answer
1k views

Apex Query on ContentVersion object and get all record

Apex Query on ContentVersion object and get all records, but the record are coming on current login user owned, not all records are coming. for example i am login with administrator account and want ...
Faisal's user avatar
  • 847
8 votes
2 answers
779 views

Query Chatter Comment Files for a group of records

My question is similar to this one except that I need the files for a group of records, making the solution of querying ContentDocumentLink unworkable, because it requires a single Id for the where ...
Daniel Blackhall's user avatar