Skip to content

You can use the renditions object to query rendition properties for a document and document versions.

The following fields are queryable for the renditions object:

NameDescription
rendition_type__sysPublic name of the rendition type, for example, viewable_rendition__v. There is no lookup to rendition type metadata.
document_idThe parent document id.
major_version_number__sysThe major version of the parent document.
minor_version_number__sysThe minor version of the parent document.
size__sysSize of unencrypted rendition file.
md5checksum__sysMD5 checksum of unencrypted file.
filename__sysName of the file.
pending__sysIndicates if the rendition file is being processed (true) or complete (false).
format__sysFile format of the rendition file.
upload_date__sysThe upload date for the rendition.
document_version_idCompound document version id field.

The following are examples of queries for document and rendition properties.

Properties from a Collection of Documents

Section link for Properties from a Collection of Documents

Get document and rendition properties for a collection of document versions. Note that you will need to respect VQL query size limits and break up your queries:

SELECT id, name__v, (SELECT rendition_type__sys, md5checksum__sys, size__sys, filename__sys FROM renditions__sysr) FROM ALLVERSIONS documents WHERE version_id CONTAINS ('102_0_3', '106_1_2', '107_1_0')

Properties for Steady State Version Documents

Section link for Properties for Steady State Version Documents

Get document and rendition properties for steady state version of a set of documents.

SELECT id, name__v, (SELECT rendition_type__sys, md5checksum__sys, size__sys, filename__sys FROM renditions__sysr) FROM documents WHERE status__v = steadystate() AND id CONTAINS (101,102,103)

Custom Properties for Steady State Version Documents

Section link for Custom Properties for Steady State Version Documents

Get document and custom rendition properties for steady state version of a set of documents.

SELECT id, name__v, (SELECT md5checksum__sys, size__sys, filename__sys FROM renditions__sysr WHERE rendition_type__sys = 'my_rendition_type__c' ) FROM documents WHERE status__v = steadystate() AND id CONTAINS (101,102,103)

Query for renditions of a particular type.

SELECT document_id, size__sys, upload_date__sys FROM renditions WHERE rendition_type__sys = 'imported_rendition__c'