---
schema_version: "1"
id: 4ed6b428f1942564e57b54aa8a09c0d8abecab0c05b05ae3ca08bf5c26b1711c
title: OwnedContentDocument
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_ownedcontentdocument.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_ownedcontentdocument.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4e9a101c1553bcfbd2da3875b0243c5462911b339b7cdc1f8e2b97fed8279576
description: Represents a file owned by a user. This object is available in version 30.0 and later.
---
# OwnedContentDocument

Represents a file owned by a user. This object is available in version 30.0 and later.

## Supported Calls

describeSObjects()

## Fields

| Field Name | Details |
| --- | --- |
| ContentDocumentId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the document.

This is a relationship field.

Relationship Name

ContentDocument

Relationship Type

Lookup

Refers To

ContentDocument



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





 |
| OwnerId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the owner of the document.

This is a relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

User



 |
| Title | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

Title of the document.





 |