---
schema_version: "1"
id: 01b4f3f014b1aac67e33e46577078b95b275c46b4e877838baf636dd6ff9465a
title: ConnectApi.FeedElement
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_feed_element.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c5965f1cb2df2ab1bd5f432cc4e78164c3158e95497f0afa87861ae6f8687744
description: Feed elements are the top-level items that a feed contains. Feeds are feed element containers.
---
# ConnectApi.FeedElement

Feed elements are the top-level items that a feed contains. Feeds are feed element containers.

This class is abstract.

Superclass of:

- [ConnectApi.FeedItem](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_Feed_Item.htm "Feed item.")
- [ConnectApi.GenericFeedElement](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_generic_feed_element.htm#apex_connectapi_output_generic_feed_element "A concrete implementation of the abstract ConnectApi.FeedElement class.")

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d985570e76">Property Name</th>

              <th class="featureTableHeader vertical-align-top " id="d985570e79">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d985570e82">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d985570e85">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">body</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_body.htm" title="Feed body.">ConnectApi.​FeedBody</a></samp></td>

              <td class="entry" headers="d985570e82" data-title="Description">Information about the feed element. <strong class="ph b">Important:</strong> Use the <samp class="codeph apex_code">header.text</samp> property as the default value for rendering text because the <samp class="codeph apex_code">body.text</samp> property can be <samp class="codeph apex_code"><span class="keyword">null</span></samp>.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">22.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">capabilities</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capabilities.htm" title="A container for all capabilities that can be included with a feed element.">ConnectApi.​FeedElement​Capabilities</a></samp></td>

              <td class="entry" headers="d985570e82" data-title="Description">A container for all capabilities that can be included with a feed element.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph nolang">createdDate</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type">Datetime</td>

              <td class="entry" headers="d985570e82" data-title="Description">ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">feedElementType</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#FeedElementTypeEnum">ConnectApi.​FeedElementType</a></samp></td>

              <td class="entry" headers="d985570e82" data-title="Description">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:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Bundle</samp>—A container of feed elements. A bundle also has a body made up of message segments that can always be gracefully degraded to text-only values.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">FeedItem</samp>—A feed item has a single parent and is scoped to oneExperience Cloud site or across all Experience Cloud sites. A feed item can have capabilities such as bookmarks, canvas, content, comment, link, poll. Feed items have a body made up of message segments that can always be gracefully degraded to text-only values.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">Recommendation</samp>—A recommendation is a feed element with a recommendations capability. A recommendation suggests records to follow, groups to join, or applications that are helpful to the context user.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">header</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_msg_body.htm" title="Message body.">ConnectApi.​MessageBody</a></samp></td>

              <td class="entry" headers="d985570e82" data-title="Description"><span class="ph" id="header"><a name="header"><!-- --></a>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.</span></td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">id</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type">String</td>

              <td class="entry" headers="d985570e82" data-title="Description">18-character ID of the feed element.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">22.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph nolang">modifiedDate</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type">Datetime</td>

              <td class="entry" headers="d985570e82" data-title="Description">ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">parent</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_actorWithIdOutput.htm" title="Actor with ID.">ConnectApi.​ActorWithId</a></samp></td>

              <td class="entry" headers="d985570e82" data-title="Description">Feed element’s parent</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">28.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph nolang">relativeCreated​Date</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type">String</td>

              <td class="entry" headers="d985570e82" data-title="Description">The created date formatted as a relative, localized string, for example,
                “17m ago” or “Yesterday.”</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d985570e76" data-title="Property Name"><samp class="codeph apex_code">url</samp></td>

              <td class="entry" headers="d985570e79" data-title="Type">String</td>

              <td class="entry" headers="d985570e82" data-title="Description">Connect REST API URL to this feed element.</td>

              <td class="entry" headers="d985570e85" data-title="Available Version">22.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.Announcement](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_announcement.htm "An announcement displays in a designated location in the Salesforce UI until 11:59 p.m. on its expiration date, unless it’s deleted or replaced by another announcement.")
- [ConnectApi.FeedElementPage](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_page.htm "A paged collection of ConnectApi.FeedElement objects.")
- [ConnectApi.PinnedFeedElements](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_pinned_feed_element_collection.htm "List of pinned feed elements for a feed.")
- [ConnectApi.QuestionAndAnswersSuggestions](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_question_and_answer_suggestion_collection.htm "Question and answers suggestions.")