ConnectApi.ContentAttachment Class

Important

Important

This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.​ContentCapability is used.

Subclass of ConnectApi.​FeedItem​Attachment Class

Objects of this type are returned by attachments in feed items with the type ContentPost.

Name Type Description Available Version
checkSum String MD5 checksum for the file 28.0–31.0
contentUrl String URL for link files and Google Docs; otherwise the value is null. 31.0–31.0
description String Description of the attachment 28.0–31.0
downloadUrl String File’s URL. This value is null if the content is a link or a Google Doc. 28.0–31.0
fileExtension String File’s extensionConnectApi.​User​Summary Class 28.0–31.0
fileSize String Size of the file in bytes. If size cannot be determined, returns unknown. 28.0–31.0
fileType String Type of file 28.0–31.0
hasImagePreview Boolean true if the file has a preview image available, otherwise ,false 28.0–29.0
hasPdfPreview Boolean true if the file has a PDF preview available, otherwise, false 28.0–31.0
id String Content’s 18-character ID 28.0–31.0
isInMyFileSync Boolean true if the file is synced withSalesforce Files Sync; false otherwise. 28.0–31.0
mimeType String File’s MIME type 28.0–31.0
renditionUrl String URL to the file’s rendition resource 28.0–31.0
renditionUrl​240By180 String URL to the 240 x 180 rendition resource for the file.For shared files, renditions process asynchronously after upload. For private files, renditions process when the first file preview is requested, and aren’t available immediately after the file is uploaded. 30.0–31.0
renditionUrl​720By480 String URL to the 720 x 480 rendition resource for the file.For shared files, renditions process asynchronously after upload. For private files, renditions process when the first file preview is requested, and aren’t available immediately after the file is uploaded. 30.0–31.0
textPreview String Text preview of the file if available, null otherwise. 30.0–31.0
thumb​120By90​RenditionStatus String Specifies the rendering status of the 120 x 90 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
thumb​240By180​RenditionStatus String Specifies the rendering status of the 240 x 180 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
thumb​720By480​RenditionStatus String Specifies the rendering status of the 720 x 480 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
title String Title of the file 28.0–31.0
versionId String 18-character ID for this version of the content 28.0–31.0
Previous
Next