ContentDocument

Represents a document that was uploaded to a library in Salesforce Files or Salesforce CRM content. This object is available in versions 17.0 and later for Salesforce CRM.This object is available in API version 21.0 and later for Salesforce Files.

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

Field NameField LabelTypeDigitsLengthPrecisionScale
ArchivedByIdUser IDreference 18  
ArchivedDateArchived Datedate    
ContentAssetIdAsset File IDreference 18  
ContentModifiedDateContent Modified Datedatetime    
ContentSizeSizeint9   
ContentSizeLongSizelong18   
CreatedByIdCreated By IDreference 18  
CreatedDateCreateddatetime    
DescriptionDescriptiontextarea 1000  
FileExtensionFile Extensionstring 40  
FileTypeFile Typestring 20  
IdContent Document IDid 18  
IsArchivedIs Archivedboolean    
IsDeletedIs Deletedboolean    
IsInternalOnlyIs Internal Onlyboolean    
LastModifiedByIdLast Modified By IDreference 18  
LastModifiedDateLast Modified Datedatetime    
LastReferencedDateLast Referenced Datedatetime    
LastViewedDateLast Viewed Datedatetime    
LatestPublishedVersionIdLatest Published Version IDreference 18  
MalwareScanDateMalware Scan Datedatetime    
MalwareScanStatusMalware Scan Statuspicklist 40  
OwnerIdOwner IDreference 18  
ParentIdParent IDreference 18  
PublishStatusPublish Statuspicklist 40  
SharingOptionPrevent others from sharing and unsharingpicklist 40  
SharingPrivacyFile Privacy on Recordspicklist 40  
SystemModstampSystem Modstampdatetime    
TitleTitlestring 255  

Feed tracking for ContentDocument.

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

Field NameField LabelTypeDigitsLengthPrecisionScale
BestCommentIdBest Comment IDreference 18  
BodyBodytextarea 10000  
CommentCountComment Countint9   
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
IdFeed Item IDid 18  
InsertedByIdInsertedBy IDreference 18  
IsDeletedDeletedboolean    
IsRichTextIs Rich Textboolean    
LastModifiedDateLast Modified Datedatetime    
LikeCountLike Countint9   
LinkUrlLink URLurl 1000  
NetworkScopeNetwork Scopepicklist 40  
ParentIdParent IDreference 18  
RelatedRecordIdRelated Record IDreference 18  
SystemModstampSystem Modstampdatetime    
TitleTitlestring 255  
TypeFeed Item Typepicklist 40  
VisibilityVisibilitypicklist 40  

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

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

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