ContentDocument
Stores documents uploaded to Salesforce, such as files attached to records or stored in libraries.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier of the content document. | |
| CreatedById | String | True |
User.Id |
ID of the user who created the content document. |
| CreatedDate | Datetime | True |
Date and time when the content document was created. | |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified the content document. |
| IsArchived | Bool | False |
Indicates whether the content document is archived (true) or not (false). | |
| ArchivedById | String | True |
User.Id |
ID of the user who archived the content document. |
| ArchivedDate | Date | True |
Date and time when the content document was archived. | |
| IsDeleted | Bool | True |
Indicates whether the content document has been deleted (true) or not (false). | |
| OwnerId | String | False |
User.Id |
ID of the owner of the content document. |
| Title | String | False |
Title of the content document. | |
| PublishStatus | String | True |
Status of the document's publishing state, such as 'Published' or 'Draft'. | |
| LatestPublishedVersionId | String | True |
ID of the most recently published version of the document. | |
| ParentId | String | False |
ID of the parent object in the hierarchy. | |
| LastViewedDate | Datetime | True |
Date and time when the content document was last viewed. | |
| LastReferencedDate | Datetime | True |
Date and time when the content document was last referenced. | |
| Description | String | False |
Text description of the record. | |
| ContentSize | Int | True |
Field containing ContentSize information. | |
| FileType | String | True |
Type classification for File. | |
| FileExtension | String | True |
Field containing FileExtension information. | |
| SharingOption | String | False |
Field containing SharingOption information. | |
| SharingPrivacy | String | False |
Field containing SharingPrivacy information. | |
| ContentModifiedDate | Datetime | True |
Date associated with ContentModified. | |
| ContentAssetId | String | False |
ContentAsset.Id |
ID of the ContentAsset associated with this record. |
| IsInternalOnly | Bool | False |
Indicates whether the record has the InternalOnly characteristic. | |
| 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. | |
| FullPath | String | False |
Pseudo column which is used to fill a contentdocument#TEMP temporary table, which is then used to upload multiple contentdocuments using the Uploadcontentdocument stored procedure. See documentation for an example. | |
| FolderPath | String | False |
Pseudo column which is used to fill a contentdocument#TEMP temporary table, which is then used to upload multiple contentdocuments using the Uploadcontentdocument stored procedure. See documentation for an example. | |
| Base64Data | String | False |
Pseudo column which is used to fill a contentdocument#TEMP temporary table, which is then used to upload multiple contentdocuments using the Uploadcontentdocument stored procedure. See documentation for an example. | |
| SystemModstamp | Datetime | True |
System-generated timestamp for tracking the last modification. | |
| LastModifiedDate | Datetime | True |
Date and time when the content document was last modified. |