ConnectApi.ContentCapabilityInput
Attach or update a file on a comment. Use this class to attach a new file or update a file that has already been uploaded to Salesforce.
This class is a subclass of ConnectApi.FeedElementCapabilityInput.
To attach or remove files from a feed post (instead of a comment) in version 36.0 and later, use ConnectApi.FilesCapabilityInput.
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
contentDocumentId | String | ID of the existing content. | Required for existing content | 32.0 |
description | String | Description of the file to be uploaded. | Optional | 32.0 |
sharingOption | ConnectApi.FileSharingOption | Sharing option of the file. Values are:
| Optional | 35.0 |
title | String | Title of the file. This value is used as the file name for new content. For example, if the title is My Title, and the file is a .txt file, the file name is My Title.txt. | Required for new content | 32.0 |
See Also