Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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

Special Access Rules

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.