Newer Version Available
ConnectApi.File
File.
This class is abstract.
Subclass of ConnectApi.ActorWithId.
Superclass of ConnectApi.FileSummary.
| Name | Type | Description | Available Version |
|---|---|---|---|
| checksum | String | MD5 checksum for the file. | 28.0 |
| contentModifiedDate | Datetime | ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z. File-specific modified date, which is updated only for direct file operations, such as rename. Modifications to the file from outside of Salesforce can update this date. | 32.0 |
| contentSize | Integer | Size of the file in bytes. | 28.0 |
| contentUrl | String | If the file is a link, returns the URL, otherwise, the string null. | 28.0 |
| createdDate | Datetime | ISO 8601 date string when the file was created. | 41.0 |
| description | String | Description of the file. | 28.0 |
| downloadUrl | String | URL to the file, that can be used for downloading the file. | 28.0 |
| fileExtension | String | Extension of the file. | 28.0 |
| fileType | String | Type of file, such as PDF, PowerPoint. | 28.0 |
| flashRenditionStatus | String | Specifies if a flash preview version of the file has been rendered. | 28.0 |
| isFileAsset | Boolean | Specifies whether the file is an asset. | 46.0 |
| isInMyFileSync | Boolean | true if the file is synced with Salesforce Files Sync; false otherwise. | 28.0 |
| isMajorVersion | Boolean | true if the file is a major version; false if the file is a minor version. Major versions can’t be replaced. | 31.0 |
| mimeType | String | File’s MIME type. | 28.0 |
| moderationFlags | ConnectApi.ModerationFlags | Information about the moderation flags on a file. If ConnectApi.Features.communityModeration is false, this property is null. | 30.0 |
| modifiedDate | Datetime | ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z. Modifications to the file from within Salesforce update this date. | 28.0 |
| name | String | Name of the file. | 28.0 |
| origin | String | Specifies the file source. Valid values are:
|
28.0 |
| owner | ConnectApi.UserSummary | File’s owner. | 28.0 |
| pdfRenditionStatus | String | Specifies if a PDF preview version of the file has been rendered. | 28.0 |
| publishStatus | ConnectApi.FilePublishStatus | Specifies the publish status of the file.
|
28.0 |
| renditionUrl | String | URL to the rendition for the file. | 28.0 |
| renditionUrl240By180 | 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. | 29.0 |
| renditionUrl720By480 | 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. | 29.0 |
| sharingOption | ConnectApi.FileSharingOption | Sharing option of the file. Values are:
|
35.0 |
| sharingPrivacy | ConnectApi.FileSharingPrivacy | Sharing privacy of a file.
Values are:
|
41.0 |
| sharingRole | ConnectApi.FileSharingType | Sharing role of the file.
|
28.0 |
| systemModstamp | Datetime | ISO 8601 date string indicating when a user or any automated system process, such as a trigger, updated the file. | 41.0 |
| textPreview | String | Text preview of the file if available; null otherwise. | 30.0 |
| thumb120By90RenditionStatus | String | Specifies the rendering status of the 120 x 90 preview image of the
file. One of these values:
|
28.0 |
| thumb240By180RenditionStatus | String | Specifies the rendering status of the 240 x 180 preview image of the
file. One of these values:
|
28.0 |
| thumb720By480RenditionStatus | String | Specifies the rendering status of the 720 x 480 preview image of the
file. One of these values:
|
28.0 |
| title | String | Title of the file. | 28.0 |
| versionNumber | String | File’s version number. | 28.0 |