Loading

Query VersionData from ContentVersion

Fecha de publicación: Dec 27, 2024
Descripción

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

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.
Número del artículo de conocimiento

000385709

 
Cargando
Salesforce Help | Article