ConnectApi.Comment
A comment.
| 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. Important: As of version 32.0, use the capabilities property. | 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 | ISO 8601 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. Important: As of version 32.0, use the feedElement property. | 28.0–31.0 |
id | String | Comment’s 18–character ID. | 28.0 |
isDeleteRestricted | Boolean | If this property is true, the context user can’t delete the comment. If this property is false, the context user might be able to delete the comment. | 28.0 |
likes | ConnectApi.ChatterLikePage | The first page of likes for the comment. This property has no information for comments on direct messages. | 28.0 |
likesMessage | ConnectApi.MessageBody | A message body that describes who likes the comment. This property is null for comments on direct messages. | 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 liked the comment, this property is a reference to the specific like, null otherwise. This property is null for comments on direct messages. | 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 |
threadLevel | Integer | Level of nesting for a comment. 0 indicates a standard comment with a parent post. 1 indicates a threaded comment with a parent comment and a parent post. 2 indicates a threaded comment with two parent comments and a parent post. The UI is limited to these three levels. | 44.0 |
threadParentId | String | ID of the parent comment for a threaded comment. | 44.0 |
type | ConnectApi.CommentType | Type of comment.
| 28.0 |
url | String | Connect REST API URL to this comment. | 28.0 |
user | ConnectApi.UserSummary | Information about the comment author. | 28.0 |
See Also