ConnectApi.FeedItemInput
Used to create rich feed items, for example, feed items that include @mentions or
files.
Subclass of ConnectApi.FeedElementInput as of version 31.0.
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| attachment | ConnectApi.FeedItemAttachmentInput | Specifies the attachment for the feed item. The feed item type is inferred based on the provided attachment. | Optional | 28.0–31.0 |
| body | ConnectApi.MessageBodyInput | 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. If you specify originalFeedElementId to share a feed item, use the body property to add the first comment to the feed item. To edit this property in a feed item, use updateFeedElement(communityId, feedElementId, feedElement). Editing feed posts is supported in version 34.0 and later. |
Required unless the feed item has a link capability or a content capability. | 28.0 |
| isBookmarkedByCurrentUser | Boolean | Specifies if the new feed item should be bookmarked for the user (true) or not (false). | Optional | 28.0–31.0 |
| originalFeedElementId | String | To share a feed element, specify its 18-character ID. | Optional | 31.0–38.0 |
| originalFeedItemId | String | To share a feed item, specify its 18-character ID. | Optional | 28.0–31.0 |
| visibility | ConnectApi.FeedItemVisibilityType Enum | Type of users who can see a feed
item.
Default values:
|
Optional | 28.0 |