Newer Version Available
ConnectApi.Comment Class
| Name | Type | Description | Available Version |
|---|---|---|---|
| attachment | ConnectApi.FeedItemAttachment | If the comment contains an attachment, property value is ContentAttachment. If the comment does not contain an attachment, it is null. | 28.0-31.0 |
| body | ConnectApi.FeedBody | Body of the comment | 28.0 |
| capabilities | ConnectApi.CommentCapabilities | Capabilities associated with the comment, such as any file attachments. | 32.0 |
| clientInfo | ConnectApi.ClientInfo | Information about the connected app used to authenticate the connection | 28.0 |
| createdDate | Datetime | ISO8601 date string, for example, 2011-02-25T18:24:31.000Z | 28.0 |
| feedElement | ConnectApi.Reference | Feed element on which the comment is posted. | |
| feedItem | ConnectApi.Reference | Feed item on which the comment is posted. | 28.0-31.0 |
| id | String | Comment’s 18–character ID | 28.0 |
| isDeleteRestricted | Boolean | If this property is true, the context user cannot delete the comment. If it is false, it might be possible for the context user to delete the comment, but it is not guaranteed. | 28.0 |
| likes | ConnectApi.ChatterLikePage | The first page of likes for the comment | 28.0 |
| likesMessage | ConnectApi.MessageBody | A message body that describes who likes the comment. | 28.0 |
| moderationFlags | ConnectApi.ModerationFlags | Information about the moderation flags on a comment. If ConnectApi.Features.communityModeration is false, this property is null. | 29.0 |
| myLike | ConnectApi.Reference | If the context user has liked the comment, this property is a reference to the specific like, null otherwise | 28.0 |
| parent | ConnectApi.Reference | Information about the parent feed-item for this comment | 28.0 |
| relativeCreatedDate | String | The created date formatted as a relative, localized string, for example, “17m ago” or “Yesterday.” | 28.0 |
| type | ConnectApi.CommentType Enum |
Specifies the type of comment.
|
28.0 |
| url | String | Chatter REST API URL to this comment | 28.0 |
| user | ConnectApi.UserSummary | Information about the comment author | 28.0 |