ContentVersion

Represents a specific version of a document in Salesforce CRM content or Salesforce Files. This object is available in versions 17.0 and later for Salesforce CRM content documents. This object is available in versions 20.0 and later for Salesforce Files.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see ContentVersion in the Consumer Goods Cloud Developer Guide and Object Reference for the Salesforce Platform.

Field NameField LabelTypeDigitsLengthPrecisionScale
ChecksumChecksumstring 50  
ContentBodyIdContent Body IDreference 18  
ContentDocumentIdContent Document IDreference 18  
ContentLocationContent Locationpicklist 40  
ContentModifiedByIdUser IDreference 18  
ContentModifiedDateContent Modified Datedatetime    
ContentSizeSizeint9   
ContentSizeLongSizelong18   
ContentUrlContent URLurl 1333  
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
CurrencyIsoCodeCurrency ISO Codepicklist 3  
DescriptionDescriptiontextarea 1000  
ExternalDataSourceIdExternal Data Source IDreference 18  
ExternalDocumentInfo1External Document Info1string 1000  
ExternalDocumentInfo2External Document Info2string 1000  
FeaturedContentBoostFeatured Content Boostint9   
FeaturedContentDateFeatured Content Datedate    
FileExtensionFile Extensionstring 40  
FileTypeFile Typestring 20  
FirstPublishLocationIdFirst Publish Location IDreference 18  
IdContent Version IDid 18  
IsAssetEnabledAsset File Enabledboolean    
IsDeletedIs Deletedboolean    
IsLatestIs Latestboolean    
IsMajorVersionMajor Versionboolean    
LastModifiedByIdLast Modified By IDreference 18  
LastModifiedDateLast Modified Datedatetime    
MalwareScanDateMalware Scan Datedatetime    
MalwareScanStatusMalware Scan Statuspicklist 40  
NegativeRatingCountNegative Rating Countint9   
NetworkIdNetwork IDreference 18  
OriginContent Originpicklist 40  
OwnerIdOwner IDreference 18  
PathOnClientPath On Clientstring 500  
PositiveRatingCountPositive Rating Countint9   
PublishStatusPublish Statuspicklist 40  
RatingCountRating Countint9   
ReasonForChangeReason For Changestring 1000  
SharingOptionPrevent others from sharing and unsharingpicklist 40  
SharingPrivacyFile Privacy on Recordspicklist 40  
SystemModstampSystem Modstampdatetime    
TagCsvTagstextarea 2000  
TextPreviewText Previewstring 255  
TitleTitlestring 255  
VersionDataVersion Database64    
VersionDataUrlVersion Data URLstring 255  
VersionNumberVersion Numberstring 20  

Represents the history of a specific version of a document. This object is available in version 17.0 and later.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see ContentVersionHistory in the Object Reference for the Salesforce Platform.

Field NameField LabelTypeDigitsLengthPrecisionScale
ContentVersionIdContent Version IDreference 18  
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
DataTypeDatatypepicklist 40  
FieldChanged Fieldpicklist 255  
IdContent Version IDid 18  
IsDeletedDeletedboolean    
NewValueNew ValueanyType 255  
OldValueOld ValueanyType 255