Loading

Query VersionData from ContentVersion

Julkaisupäivä: Dec 27, 2024
Kuvaus

When querying the ContentVersion records with VersionData Field, query returns a single record with out using any filter.
Ratkaisu

For example, below query returns 1 record at a time when you run it using the query API. In Workbench you may see an option like "More" button. Clicking on More will get the next record and "More" button and so on.. 

Query: 
Select id,VersionData, Title, Description, FileType,ContentUrl, PathOnClient, ContentSize, TagCsv, Owner.Name, VersionNumber from ContentVersion
This is because when using the API, you may receive fewer than the default 500 records in a QueryResult if the rows are wide, which they will be when retrieving the base64-encoded content stored in VersionData. You should check the done property, and call queryMore with the queryLocator to get more rows.
Knowledge-artikkelin numero

000385709

 
Ladataan
Salesforce Help | Article