---
schema_version: "1"
id: 31dfd0b852dd1e88f48636fce11f354f129be46e5d44ec9acd13164dd8e04175
title: ContentFolderItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_contentfolderitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentfolderitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c62c2b2bcffda0debf96c98124b39ac2c2a3392fbc471ed1b306a26305ca4e1e
description: Represents a file (ContentDocument) or folder (ContentFolder) that resides in a ContentFolder in a ContentWorkspace. This object is available in API version 35.0 and later.
---
# ContentFolderItem

Represents a file (ContentDocument) or folder (ContentFolder) that resides in a ContentFolder in a ContentWorkspace. This object is available in API version 35.0 and later.

## Supported Calls

describeSObjects(), describeLayout(), query(), retrieve()

## Fields

| Field Name | Details |
| --- | --- |
| ContentSize | 
Type

int

Properties

Filter, Group, Nillable, Sort

Description

The size of the file or folder in bytes, when the size is smaller than 2 GB.

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





 |
| ContentSizeLong | 

Type

long

Properties

Filter, Group, Nillable, Sort

Description

The size of the file or folder in bytes up to 10 GB.

This field is available in API version 66.0 and later.





 |
| FileExtension | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Specifies the file extension if the ContentFolderItem is a file.





 |
| FileType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Specifies the type of file if the ContentFolderItem is a file.





 |
| IsFolder | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates that the ContentFolderItem is a folder, and not a file.





 |
| ParentContentFolderId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the ContentFolder that the ContentFolderItem resides in.

This is a relationship field.

Relationship Name

ParentContentFolder

Relationship Type

Lookup

Refers To

ContentFolder



 |
| Title | 

Type

string

Properties

Filter, Group, Sort

Description

The name of the file or folder.





 |