ConnectApi.FeedItem
Feed item.
Subclass of ConnectApi.FeedElement Class as of version 31.0.
| Name | Type | Description | Available Version |
|---|---|---|---|
| actor | ConnectApi.Actor | The entity that created the feed item. | 28.0 |
| attachment | ConnectApi.FeedItemAttachment | Information about the attachment. If there is no attachment, returns null. Important: As of version 32.0, use the inherited capabilities property. | 28.0–31.0 |
| canShare | Boolean | Indicates whether the feed item can be shared. If a feed item has multiple file attachments and at least one attachment has been deleted or is inaccessible, the feed item can’t be shared. The canShare value is incorrectly set to true in these cases. Important: As of version 39.0, use the isSharable property. |
28.0–38.0 |
| clientInfo | ConnectApi.ClientInfo | Information about the connected app used to authenticate the connection. | 28.0 |
| comments | ConnectApi.CommentPage | First page of comments for this feed item. Important: As of version 32.0, use the inherited capabilities.comments.page property. | 28.0–31.0 |
| event | Boolean | true if feed item is created due to an event change, false otherwise. | 22.0 |
| hasVerifiedComment | Boolean | true if the feed item has a verified comment, otherwise false. | 41.0 |
| isBookmarkedByCurrentUser | Boolean | true if the context user has bookmarked this feed item, otherwise, false. Important: As of version 32.0, use the inherited capabilities.bookmarks.isBookmarkedByCurrentUser property. | 28.0–31.0 |
| isDeleteRestricted | Boolean | If this property is true the comment cannot be deleted by the context user. If it is false, it might be possible for the context user to delete the comment, but it is not guaranteed. | 28.0 |
| isLikedByCurrentUser | Boolean | true if the context user has liked this feed item, otherwise, false. Important: As of version 32.0, use the inherited capabilities.chatterLikes.isLikedByCurrentUser property. | 28.0–31.0 |
| isSharable | Boolean | Indicates whether the feed item can be shared. | 39.0 |
| likes | ConnectApi.ChatterLikePage | First page of likes for this feed item. Important: As of version 32.0, use the inherited capabilities.chatterLikes.page property. | 28.0–31.0 |
| likesMessage | ConnectApi.MessageBody | A message body the describes who likes the feed item. Important: As of version 32.0, use the inherited capabilities.chatterLikes.likesMessage property. | 28.0–31.0 |
| moderationFlags | ConnectApi.ModerationFlags | Information about the moderation flags on a feed item. If ConnectApi.Features.communityModeration is false, this property is null. Important: As of version 31.0, use the inherited capabilities.moderation.moderationFlags property. | 29.0–30.0 |
| myLike | ConnectApi.Reference | If the context user has liked the feed item, this property is a reference to the specific like, otherwise, null. Important: As of version 32.0, use the inherited capabilities.chatterLikes.myLike property. | 28.0–31.0 |
| originalFeedItem | ConnectApi.Reference | A reference to the original feed item if this feed item is a shared feed item, otherwise, null. | 28.0 |
| originalFeedItemActor | ConnectApi.Actor | If this feed item is a shared feed item, returns information about the original poster of the feed item, otherwise, returns null. | 28.0 |
| photoUrl | String | URL of the photo associated with the feed item | 28.0 |
| preamble | ConnectApi.MessageBody | A collection of message segments, including the unformatted text of the message
that you can use as the title of a feed item. Message segments include name, link,
and motif icon information for the actor that created the feed item. Important: For API versions 29.0 and 30.0, use the ConnectApi.FeedItem.preamble.text property as the default case to render text. For API versions 31.0 and later, use the ConnectApi.FeedElement.header.text property as the default case to render text. |
28.0-30.0 |
| topics | ConnectApi.FeedItemTopicPage | Topics for this feed item. Important: As of version 31.0, use the inherited capabilities.topics.items property. | 28.0–31.0 |
| type | ConnectApi.FeedItemType | Type of feed item. Important: As of API version 32.0, use the capabilities property to determine what can be done with a feed item. See Working with Feeds and Feed Elements. One of these values:
|
28.0 |
| visibility | ConnectApi.FeedItemVisibilityType | Type of users who can see a feed item.
|
28.0 |