Newer Version Available

This content describes an older version of this product. View Latest

ContentHubItem

Represents a file or folder in a Files Connect external data source, such as Microsoft SharePoint or OneDrive for Business. This object is available in API version 33.0 and later.

Special Access Rules

Chatter and Files Connect must be enabled for the organization.

Supported Calls

describeSObjects()query()search()

Queries or searches on ContentHubItem must be filtered with the ContentHubRepositoryId field; for example, SELECT ID from ContentHubItem WHERE ContentHubRepositoryID = <ID of external data source>.

Important

Fields

Field Name Details
ContentHubRepositoryId
Type
reference
Properties
Filter, Group, Nillable
Description
The ID for the related external data source described by the ContentHubRepository object.
ContentModifiedDate
Type
dateTime
Properties
Nillable
Description
Date the file or folder content last changed.
ContentSize
Type
int
Properties
Group, Nillable
Description
File or folder size.
Description
Type
string
Properties
Filter, Group, Nillable
Description
Explanation of item in external data source.
ExternalContentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the document content in the external data source.
ExternalDocumentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the detail page in the external data source.
ExternalId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID for the file or folder in the external data source.
FileExtension
Type
string
Properties
Group, Nillable
Description
File format extension, such as .doc or .pdf
FileType
Type
string
Properties
Group, Nillable
Description
Complete file type, such as “Microsoft Word Document.”
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether item is a folder or file.
MimeType
Type
string
Properties
Filter, Group, Nillable
Description
MIME type of the content.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
Name of the file or folder in the external data source.
Owner
Type
string
Properties
Filter, Group, Nillable
Description
Username of the content owner in the external data source.
ParentId
Type
string
Properties
Filter, Group, Nillable
Description
The ID of the parent folder for the record.

This field isn’t returned in queries or searches of the ContentHubItem object. It supports only WHERE clauses, such as the following:

WHERE ContentHubRepositoryId = <ID of external source> and ParentId = <ID of parent folder or record>.

Or specify WHERE ParentId = <name of root folder> to return the children of the root folder.

The ParentId field supports both Salesforce IDs (in the format “0CHxxx”) and external IDs.

Tip

Title
Type
string
Properties
Group, Nillable
Description
The title that appears in the content, which often differs from the Name of the containing file or folder.
UpdatedBy
Type
string
Properties
Group, Nillable
Description
Username for the person who last updated the file.