Apex Reference Guide
Winter '27 (API version 68.0)
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Newer Version Available
ConnectApi.FeedElement
Feed elements are the top-level items that a feed contains. Feeds
are feed element containers.
This class is abstract.
Superclass of:
| Property Name | Type | Description | Available Version |
|---|---|---|---|
| body | ConnectApi.FeedBody | Information about the feed element. Use the header.text property as the default value for rendering text because the body.text property can be null. Important |
22.0 |
| capabilities | ConnectApi.FeedElementCapabilities | A container for all capabilities that can be included with a feed element. | 31.0 |
| createdDate | Datetime | ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z. | 31.0 |
| feedElementType | ConnectApi.FeedElementType | Feed elements are the top-level objects that
a feed contains. The feed element type describes the characteristics of that
feed element.
One of these values:
|
31.0 |
| header | ConnectApi.MessageBody | The header is the title of the post. This property contains renderable plain text for all the segments of the message. If a client doesn’t know how to render a feed element type, it should render this text. | 31.0 |
| id | String | 18-character ID of the feed element. | 22.0 |
| modifiedDate | Datetime | ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z. | 31.0 |
| parent | ConnectApi.ActorWithId | Feed element’s parent | 28.0 |
| relativeCreatedDate | String | The created date formatted as a relative, localized string, for example, ���17m ago” or “Yesterday.” | 31.0 |
| url | String | Connect REST API URL to this feed element. | 22.0 |