ContentVersion
Tracks different versions of Content Documents, enabling version control for uploaded files.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier of the content version record. | |
| ContentDocumentId | String | False |
ID of the parent content document this version belongs to. | |
| IsLatest | Bool | True |
Indicates whether this version is the latest (true) or not (false). | |
| ContentUrl | String | False |
URL used to access the content. | |
| ContentBodyId | String | False |
ID of the ContentBody associated with this record. | |
| VersionNumber | String | True |
The version number of the content document. | |
| Title | String | False |
Title of the content document version. | |
| Description | String | False |
Text description of the content document version. | |
| ReasonForChange | String | False |
Explanation for changes made in this version. | |
| SharingOption | String | False |
Field containing SharingOption information. | |
| SharingPrivacy | String | False |
Field containing SharingPrivacy information. | |
| PathOnClient | String | False |
Original file path on the client machine when the content was uploaded. | |
| RatingCount | Int | True |
Total number of ratings received for this version. | |
| IsDeleted | Bool | True |
Indicates whether the version has been deleted (true) or not (false). | |
| ContentModifiedDate | Datetime | False |
Date and time when the content was last modified. | |
| ContentModifiedById | String | True |
User.Id |
ID of the user who last modified the content. |
| PositiveRatingCount | Int | True |
Number of positive ratings for this content version. | |
| NegativeRatingCount | Int | True |
Number of negative ratings for this content version. | |
| FeaturedContentBoost | Int | True |
Boost value applied when the content is featured. | |
| FeaturedContentDate | Date | True |
Date when the content was marked as featured. | |
| CurrencyIsoCode | String | False |
ISO code for the currency in which the revenue amount is expressed. | |
| OwnerId | String | False |
User.Id |
ID of the user who owns this content version. |
| CreatedById | String | True |
User.Id |
ID of the user who created this version. |
| CreatedDate | Datetime | True |
Date and time when this content version was created. | |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified this version. |
| TagCsv | String | False |
Comma-separated list of tags associated with this version. | |
| FileType | String | True |
Type of file (such as PDF, DOCX, or PNG). | |
| PublishStatus | String | True |
Publishing status of the content, such as 'D' for draft or 'P' for published. | |
| VersionData | String | False |
Base64-encoded file data for this version. | |
| ContentSize | Int | True |
Size of the content in bytes. | |
| FileExtension | String | True |
Field containing FileExtension information. | |
| FirstPublishLocationId | String | False |
ID of the record where this content version was first published. | |
| FirstPublishLocationIdType | String | False |
Specifies the type of the 'FirstPublishLocationId' polymorphic field to use in the statement. | |
| FirstPublishLocationIdExternalFieldName | String | False |
Specifies the external field name of the 'FirstPublishLocationId' polymorphic field to use in an INSERT/UPDATE/UPSERT statement | |
| Origin | String | False |
Indicates where the content originated, such as 'C' for Chatter or 'H' for API. | |
| ContentLocation | String | False |
Field containing ContentLocation information. | |
| TextPreview | String | True |
Field containing TextPreview information. | |
| ExternalDocumentInfo1 | String | False |
Field containing ExternalDocumentInfo1 information. | |
| ExternalDocumentInfo2 | String | False |
Field containing ExternalDocumentInfo2 information. | |
| ExternalDataSourceId | String | False |
ID of the ExternalDataSource associated with this record. | |
| Checksum | String | True |
SHA-256 checksum for the uploaded file. | |
| IsMajorVersion | Bool | False |
Indicates whether the record has the MajorVersion characteristic. | |
| IsAssetEnabled | Bool | False |
Indicates whether the record has the AssetEnabled characteristic. | |
| VersionDataUrl | String | True |
Field containing VersionDataUrl information. | |
| SOQL | String | False |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | False |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | False |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| SystemModstamp | Datetime | True |
Timestamp for system-level modifications. | |
| LastModifiedDate | Datetime | True |
Date and time when this version was last modified. |