ConnectApi.ContentCapability

If a comment has this capability, it has a file attachment.

Subclass of ConnectApi.FeedElementCapability.

For files attached to a feed post (instead of a comment) in version 36.0 and later, use ConnectApi.FilesCapability.

If content is deleted from a feed element after it’s posted or if the access to the content is changed to private, the ConnectApi.ContentCapability exists, however most of its properties are null.

Property NameTypeDescriptionAvailable Version
checksumStringMD5 checksum for the file.32.0
contentUrlStringURL of the content for links and Google docs.32.0
descriptionStringDescription of the attachment.32.0
downloadUrlStringURL to the content.32.0
fileExtensionStringExtension of the file.32.0
fileSizeStringSize of the file in bytes. If size cannot be determined, returns Unknown.32.0
fileTypeStringType of file.32.0
hasPdfPreviewBooleantrue if the file has a PDF preview available, false otherwise.32.0
idString18-character ID of the content.32.0
isInMyFileSyncBooleantrue if the file is synced with Salesforce Files Sync; false otherwise.32.0
mimeTypeStringMIME type of the file.32.0
renditionUrlStringURL to the rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.32.0
renditionUrl240By180StringURL to the 240x180 size rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.32.0
renditionUrl720By480StringURL to the 720x480 size rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.32.0
sharingOptionConnectApi.​FileSharingOptionSharing option of the file. Values are:
  • Allowed—Resharing of the file is allowed.
  • Restricted—Resharing of the file is restricted.
35.0
textPreviewStringText preview of the file if available, null otherwise. The maximum number of characters is 200.32.0
thumb120By90​RenditionStatusStringThe status of the rendering of the 120x90 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.32.0
thumb240By180​RenditionStatusStringThe status of the rendering of the 240x180 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.32.0
thumb720By480​RenditionStatusStringThe status of the rendering of the 720x480 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.32.0
titleStringTitle of the file.32.0
versionIdStringVersion ID of the file.32.0

See Also