---
schema_version: "1"
id: e240f6b2f93b2e2ee5786b42812bd8937692c34dd76272f45c22b9e82d88db29
title: CombinedAttachment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_combinedattachment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_combinedattachment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 52c165baea027a69994e51c060749e38a803d12d0598391e6b9139447a1b0745
description: 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.
---
# 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

The size of the document in bytes for documents smaller than 2 GB.

In API version 66.0 and later, we recommend that you use the ContentSizeLong field even for documents smaller than 2 GB.





 |
| ContentSizeLong | 

Type

long

Properties

Filter, Group, Nillable, Sort

Description

The size of the document in bytes up to 10 GB.

This field is available in API version 66.0 and later.





 |
| 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

The 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, which is determined by the file extension.





 |
| ParentId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the parent object.

This is a relationship field.

Relationship Name

Parent

Relationship Type

Lookup

Refers To

Account, Accreditation, ActivationTarget, ActivationTrgtIntOrgAccess, ApiAnomalyEventStore, AssessmentIndicatorDefinition, AssessmentTask, AssessmentTaskContentDocument, AssessmentTaskDefinition, AssessmentTaskIndDefinition, AssessmentTaskOrder, Asset, AssetRelationship, AssignedResource, Award, BoardCertification, BusinessLicense, BusinessMilestone, BusinessProfile, Campaign, CareBarrier, CareBarrierDeterminant, CareBarrierType, CareDeterminant, CareDeterminantType, CareDiagnosis, CareInterventionType, CareMetricTarget, CareObservation, CareObservationComponent, CarePgmProvHealthcareProvider, CarePreauth, CarePreauthItem, CareProgram, CareProgramCampaign, CareProgramEligibilityRule, CareProgramEnrollee, CareProgramEnrolleeProduct, CareProgramEnrollmentCard, CareProgramGoal, CareProgramProduct, CareProgramProvider, CareProgramTeamMember, CareProviderAdverseAction, CareProviderFacilitySpecialty, CareProviderSearchableField, CareRegisteredDevice, CareRequest, CareRequestDrug, CareRequestExtension, CareRequestItem, CareSpecialty, CareSpecialtyTaxonomy, CareTaxonomy, Case, CodeSet, CollaborationGroup, CommSubscription, CommSubscriptionChannelType, CommSubscriptionConsent, CommSubscriptionTiming, ConsumptionSchedule, Contact, ContactEncounter, ContactEncounterParticipant, ContentWorkspace, Contract, ConversationEntry, CoverageBenefit, CoverageBenefitItem, CredentialStuffingEventStore, CreditMemo, CreditMemoLine, Dashboard, DashboardComponent, DataStream, DelegatedAccount, DocumentChecklistItem, EmailMessage, EmailTemplate, EngagementChannelType, EnhancedLetterhead, EnrollmentEligibilityCriteria, Event, HealthcareFacility, HealthcareFacilityNetwork, HealthcarePayerNetwork, HealthcarePractitionerFacility, HealthcareProvider, HealthcareProviderNpi, HealthcareProviderSpecialty, HealthcareProviderTaxonomy, Identifier, IdentityDocument, Image, IndividualApplication, Invoice, InvoiceLine, Lead, ListEmail, Location, MarketSegment, MarketSegmentActivation, MemberPlan, MessagingSession, MktCalculatedInsight, OperatingHours, Opportunity, Order, OrderItem, Organization, OtherComponentTask, PartyConsent, PersonEducation, PersonLanguage, PersonLifeEvent, PersonName, PlanBenefit, PlanBenefitItem, Product2, ProductFulfillmentLocation, ProductItem, ProductItemTransaction, ProductRequest, ProductRequestLineItem, ProductRequired, ProductTransfer, ProfileSkill, ProfileSkillEndorsement, ProfileSkillUser, ProviderSearchSyncLog, PurchaserPlan, PurchaserPlanAssn, ReceivedDocument, Report, ReportAnomalyEventStore, ResourceAbsence, ResourcePreference, ReturnOrder, ReturnOrderLineItem, ServiceAppointment, ServiceResource, ServiceResourceSkill, ServiceTerritory, ServiceTerritoryMember, ServiceTerritoryWorkType, SessionHijackingEventStore, Shift, Shipment, ShipmentItem, Site, SkillRequirement, SocialPost, Solution, Task, ThreatDetectionFeedback, User, Visit, VisitedParty, Visitor, VoiceCall, VolunteerProject, WorkBadgeDefinition, WorkOrder, WorkOrderLineItem, WorkType, WorkTypeGroup, WorkTypeGroupMember



 |
| RecordType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The parent object type.





 |
| SharingOption | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

Description

Controls whether sharing is frozen for a file. Only Salesforce admins and file owners with Collaborator access to the file can modify this field. The 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.