AttachedContentDocument

This read-only object contains all ContentDocument objects associated with an object.

Supported Calls

describeSObjects()

Fields

Field Name Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description

ID of the attached ContentDocument.

ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description

Size of the document in bytes.

ContentUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description

URL for links and Google Docs. This field is set only for links and Google Docs, and is one of the fields that determine the FileType.

This field is available in API version 31.0 and later.

ExternalDataSourceName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the external data source in which the document is stored. This field is set only for external documents that are connected to Salesforce.

This field is available in API version 32.0 and later.

ExternalDataSourceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of external data source in which the document is stored. This field is set only for external documents that are connected to Salesforce.

This field is available in APIAPI version 35.0 and later.

FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description

File extension of the attached ContentDocument.

This field is available in API version 31.0 and later.

FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description

Type of document, determined by the file extension.

LinkedEntityId
Type
reference
Properties
Filter, Group, Sort
Description

ID of the record the ContentDocument is attached to.

SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file owners with Collaborator access to the file can modify this field. Default is Allowed, which means that new shares are allowed. When set to Restricted, new shares are prevented without affecting existing shares.

This field is available in API versions 35.0 and later.

Title
Type
string
Properties
Filter, Group, Sort
Description

Title of the attached ContentDocument.

Usage

Use this object to list all ContentDocument objects attached to an object via a feed post.

To retrieve ContentDocument objects, issue a describe call on an object, which returns a query result for each activity since the record was created. You can’t directly query this object.