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 | Boolean | True |
Indicates whether this version is the latest (true) or not (false). | |
| ContentUrl | String | False |
URL used to access the content. | |
| 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. | |
| 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 | Boolean | True |
Indicates whether the version has been deleted (true) or not (false). | |
| ContentModifiedDate | Datetime | True |
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 | Datetime | True |
Date when the content was marked as featured. | |
| 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. |
| LastModifiedDate | Datetime | True |
Date and time when this version was last modified. | |
| SystemModstamp | Datetime | True |
Timestamp for system-level modifications. | |
| 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. | |
| FirstPublishLocationId | String | False |
ID of the record where this content version was first published. | |
| Origin | String | False |
Indicates where the content originated, such as 'C' for Chatter or 'H' for API. | |
| Checksum | String | True |
SHA-256 checksum for the uploaded file. |