CombinedAttachment

This read-only object contains all notes, attachments, Google Docs, documents uploaded to libraries in Salesforce CRM Content, and files added to Chatter that are associated with a record.

Supported Calls

describeSObjects()

Fields

Field Name Details
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 API version 35.0 and later.

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

File extension of the document.

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.

ParentId
Type
reference
Properties
Filter, Group, Sort
Description

The ID of the parent object.

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

The parent object type.

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, Nillable, Sort
Description

Title of the attached file.

Usage

Use this object to list all notes, attachments, documents uploaded to libraries in Salesforce CRM Content, and files added to Chatter for a record, such as a related list on a detail page.

To determine if an object supports the CombinedAttachment object, call describeSObject() on the object. For example, describeSObject('Account') returns all the child relationships of the Account object, including CombinedAttachment. You can then query the CombinedAttachment child relationship.

SELECT Name, (SELECT Title FROM CombinedAttachments)
FROM Account

You can’t directly query CombinedAttachment.