ConnectApi.Comment

A comment.

NameTypeDescriptionAvailable Version
attachmentConnectApi.​FeedItem​AttachmentIf 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
bodyConnectApi.​FeedBodyBody of the comment.28.0
capabilitiesConnectApi.​CommentCapabilitiesCapabilities associated with the comment, such as any file attachments.32.0
clientInfoConnectApi.​ClientInfoInformation about the connected app used to authenticate the connection.28.0
createdDateDatetimeISO 8601 date string, for example, 2011-02-25T18:24:31.000Z.28.0
feedElementConnectApi.​​ReferenceFeed element on which the comment is posted. 
feedItemConnectApi.​​ReferenceFeed item on which the comment is posted. Important: As of version 32.0, use the feedElement property.28.0–31.0
idStringComment’s 18–character ID.28.0
isDelete​RestrictedBooleanIf 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
likesConnectApi.​Chatter​Like​PageThe first page of likes for the comment.
This property has no information for comments on direct messages.
28.0
likesMessageConnectApi.​Message​BodyA message body that describes who likes the comment.
This property is null for comments on direct messages.
28.0
moderation​FlagsConnectApi.​ModerationFlagsInformation about the moderation flags on a comment. If ConnectApi.Features.communityModeration is false, this property is null.29.0
myLikeConnectApi.​​ReferenceIf 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
parentConnectApi.​​ReferenceInformation about the parent feed-item for this comment.28.0
relativeCreatedDateStringThe created date formatted as a relative, localized string, for example, “17m ago” or “Yesterday.”28.0
threadLevelIntegerLevel 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
threadParentIdStringID of the parent comment for a threaded comment.44.0
typeConnectApi.​CommentTypeType of comment.
  • ContentComment—Comment holds a content capability.
  • TextComment—Comment contains only text.
28.0
urlStringConnect REST API URL to this comment.28.0
userConnectApi.​User​SummaryInformation about the comment author.28.0

See Also