Used to add rich comments, for example, comments that include @mentions or attachments.
Property | Type | Description | Available Version |
---|---|---|---|
attachment | ConnectApi.FeedItemAttachmentInput Class | Optional. Specifies an attachment for the comment. Valid values are:
|
28.0-31.0 |
body | ConnectApi.MessageBodyInput Class | Description of message body. The body can contain up to 10,000
characters and 25
mentions. Because the character limit can change, clients should make a describeSObjects() call on the FeedItem or
FeedComment object and look at the length of the Body or
CommentBody field to determine the maximum number of
allowed characters. To edit this property in a comment, use updateComment(communityId, commentId, comment). Editing comments is supported in version 34.0 and later. |
28.0 |
capabilities | ConnectApi.CommentCapabilities Class | Optional. Specifies any capabilities for the comment, such as a file attachment. | 32.0 |