Newer Version Available

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

ConnectApi.​ContentCapability

If a feed element has this capability, it has a file attachment.

Subclass of ConnectApi.​FeedElement​Capability Class.

Property Name Type Description Available Version
checksum String MD5 checksum for the file. 32.0
contentUrl String URL of the content for links and Google docs. 32.0
description String Description of the attachment. 32.0
downloadUrl String URL to the content. 32.0
fileExtension String Extension of the file. 32.0
fileSize String Size of the file in bytes. If size cannot be determined, returns Unknown. 32.0
fileType String Type of file. 32.0
hasPdfPreview Boolean true if the file has a PDF preview available, false otherwise. 32.0
id String 18-character ID of the content. 32.0
isInMyFileSync Boolean true if the file is included in the user’s Salesforce Files Sync folder, and is synced between that folder and Chatter; false otherwise. 32.0
mimeType String MIME type of the file. 32.0
renditionUrl String URL 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
renditionUrl240By180 String URL 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
renditionUrl720By480 String URL 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
textPreview String Text preview of the file if available, null otherwise. The maximum number of characters is 200. 32.0
thumb120By90​RenditionStatus String The 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​RenditionStatus String The 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​RenditionStatus String The 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
title String Title of the file. 32.0
versionId String Version ID of the file. 32.0