---
schema_version: "1"
id: 3da3b9fd6b4f25fe10060e7be2d8c0c3a178bf4f4e1b177d555ed9931f9a21db
title: ConnectApi.FeedItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_Feed_Item.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_Feed_Item.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: eb45b2d5b260251cbee0b46072028c0dbea618e566f10c79ec64dfca9aad2ee3
description: Feed item.
---
# ConnectApi.FeedItem

Feed item.

Subclass of [ConnectApi.FeedElement Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element.htm "Feed elements are the top-level items that a feed contains. Feeds are feed element containers.") as of version 31.0.

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




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

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

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

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

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">actor</samp></td>

              <td class="entry" headers="d754898e60" 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_actor.htm" title="Actor.">ConnectApi.Actor</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">The entity that created the feed item.</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">attachment</samp></td>

              <td class="entry" headers="d754898e60" 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_item_attachment.htm" title="Feed item attachment.">ConnectApi.​FeedItem​Attachment</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">Information about the attachment. If there is no attachment, returns <samp class="codeph nolang">null</samp>. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">canShare</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">Indicates whether the feed item can be shared.<p class="p">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 <samp class="codeph apex_code">canShare</samp> value is incorrectly set to <samp class="codeph apex_code"><span class="keyword">true</span></samp> in these cases.</p>
                <strong class="ph b">Important:</strong> As of version 39.0, use the <samp class="codeph apex_code">isSharable</samp> property.
              </td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–38.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">clientInfo</samp></td>

              <td class="entry" headers="d754898e60" 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_client_info.htm" title="Client information.">ConnectApi.​ClientInfo</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">Information about the connected app used to authenticate the
                connection.</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">comments</samp></td>

              <td class="entry" headers="d754898e60" 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_comment_page.htm" title="A page of comments.">ConnectApi.​Comment​​Page</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">First page of comments for this feed item. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.comments.page</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">event</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">
                <samp class="codeph apex_code"><span class="keyword">true</span></samp> if feed item is created due to an
                event change, <samp class="codeph apex_code"><span class="keyword">false</span></samp> otherwise.
              </td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">hasVerified​Comment</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description"><span class="ph" id="hasVerifiedComment"><a name="hasVerifiedComment"><!-- --></a><samp class="codeph apex_code"><span class="keyword">true</span></samp> if the
                  feed item has a verified comment, otherwise <samp class="codeph apex_code"><span class="keyword">false</span></samp>.</span></td>

              <td class="entry" headers="d754898e66" data-title="Available Version">41.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">isBookmarked​ByCurrentUser</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">
                <samp class="codeph nolang">true</samp> if the context user has bookmarked
                this feed item, otherwise, <samp class="codeph nolang">false</samp>. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.bookmarks.isBookmarkedByCurrentUser</samp> property.
              </td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">isDelete​Restricted</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">If this property is <samp class="codeph apex_code"><span class="keyword">true</span></samp> the comment
                cannot be deleted by the context user. If it is <samp class="codeph apex_code"><span class="keyword">false</span></samp>, it might be possible for the context user to delete the comment,
                but it is not guaranteed.</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">isLikedBy​CurrentUser</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">
                <samp class="codeph nolang">true</samp> if the context user has liked this
                feed item, otherwise, <samp class="codeph nolang">false</samp>. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.chatterLikes.isLikedByCurrentUser</samp> property.
              </td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">isSharable</samp></td>

              <td class="entry" headers="d754898e60" data-title="Type">Boolean</td>

              <td class="entry" headers="d754898e63" data-title="Description">Indicates whether the feed item can be shared.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">39.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">likes</samp></td>

              <td class="entry" headers="d754898e60" 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_like_page.htm" title="Page of Chatter likes.">ConnectApi.​Chatter​Like​Page</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">First page of likes for this feed item. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.chatterLikes.page</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">likesMessage</samp></td>

              <td class="entry" headers="d754898e60" 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.​Message​Body</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">A message body the describes who likes the feed item. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.chatterLikes.likesMessage</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">moderationFlags</samp></td>

              <td class="entry" headers="d754898e60" 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_moderationFlags.htm" title="Information about the moderation flags on a feed item, comment, or file.">ConnectApi.​ModerationFlags</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">Information about the moderation flags on a feed item. If <samp class="codeph apex_code">ConnectApi.Features.communityModeration</samp> is <samp class="codeph apex_code"><span class="keyword">false</span></samp>, this property is <samp class="codeph apex_code"><span class="keyword">null</span></samp>. <strong class="ph b">Important:</strong> As of version 31.0, use the inherited <samp class="codeph apex_code">capabilities.moderation.moderationFlags</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">29.0–30.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">myLike</samp></td>

              <td class="entry" headers="d754898e60" 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_reference.htm" title="Reference to a record.">ConnectApi.​​Reference</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">If the context user has liked the feed item, this property is a reference to
                the specific like, otherwise, <samp class="codeph nolang">null</samp>. <strong class="ph b">Important:</strong> As of version 32.0, use the inherited <samp class="codeph apex_code">capabilities.chatterLikes.myLike</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">originalFeedItem</samp></td>

              <td class="entry" headers="d754898e60" 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_reference.htm" title="Reference to a record.">ConnectApi.​​Reference</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">A reference to the original feed item if this feed item is a shared feed item,
                otherwise, <samp class="codeph nolang">null</samp>.</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">originalFeed​ItemActor</samp></td>

              <td class="entry" headers="d754898e60" 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_actor.htm" title="Actor.">ConnectApi.Actor</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">If this feed item is a shared feed item, returns information about the original
                poster of the feed item, otherwise, returns <samp class="codeph apex_code"><span class="keyword">null</span></samp>.</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">photoUrl</samp></td>

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

              <td class="entry" headers="d754898e63" data-title="Description">URL of the photo associated with the feed item</td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">preamble</samp></td>

              <td class="entry" headers="d754898e60" 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.​Message​Body</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">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. <strong class="ph b">Important:</strong>
                <p class="p"><span class="ph" id="preamble"><a name="preamble"><!-- --></a>For API versions 29.0 and 30.0, use the <samp class="codeph apex_code">ConnectApi.FeedItem.preamble.text</samp> property as the default case to render text.</span> For API versions 31.0 and later, use the <samp class="codeph apex_code">ConnectApi.FeedElement.header.text</samp> property as the default case to render text.</p>
              </td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">topics</samp></td>

              <td class="entry" headers="d754898e60" 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_item_topic_page.htm" title="Feed item topic page.">ConnectApi.FeedItemTopicPage</a></samp></td>

              <td class="entry" headers="d754898e63" data-title="Description">Topics for this feed item. <strong class="ph b">Important:</strong> As of version 31.0, use the inherited <samp class="codeph apex_code">capabilities.topics.items</samp> property.</td>

              <td class="entry" headers="d754898e66" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">type</samp></td>

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

              <td class="entry" headers="d754898e63" data-title="Description">Type of feed item. <strong class="ph b">Important:</strong> As of API version 32.0, use the <samp class="codeph apex_code">capabilities</samp> property to determine what can be done with a feed item. See <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_features_feeds_feed_elements.htm" target="_blank">Working with Feeds and Feed Elements</a>. <div class="p">One of these values:<ul class="ul bulletList">
                    <li class="li">
                      <samp class="codeph apex_code">ActivityEvent</samp>—Feed item generated in Case Feed when an event or task associated with a parent record with a feed enabled is created or updated.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">AdvancedTextPost</samp>—A feed item with advanced text formatting, such as a group announcement post.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">ApprovalPost</samp>—Feed item with an approval capability. Approvers can act on the feed item parent.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">AttachArticleEvent</samp>—Feed item generated when an article is attached to a case in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">BasicTemplateFeedItem</samp>—Feed item with an enhanced link capability.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">CallLogPost</samp>—Feed item generated when a call log is saved to a case in Case Feed.
                    </li>
                    <li class="li" id="canvasPost">
                      <a name="canvasPost"><!-- --></a><samp class="codeph apex_code">CanvasPost</samp>—Feed item generated by a canvas app in the publisher or from Connect REST API or Connect in Apex. The post itself is a link to a canvas app.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">CaseCommentPost</samp>—Feed item generated when a case comment is saved in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">ChangeStatusPost</samp>—Feed item generated when the status of a case is changed in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">ChatTranscriptionPost</samp>—Feed item generated in Case Feed when a Live Agent chat transcript is saved to a case.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">CollaborationGroupCreated</samp>—Feed item generated when a new public group is created. Contains a link to the new group.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">CollaborationGroupUnarchived</samp>—Deprecated. Feed item generated when an archived group is activated.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">ContentPost</samp>—Feed item with a content capability.
                    </li>
                    <li class="li">
                      <samp class="codeph nolang">CreateRecordEvent</samp>—Feed item that describes a record created in the publisher.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">DashboardComponentAlert</samp>—Feed item with a dashboard alert.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">DashboardComponentSnapshot</samp>—Feed item with a dashboard component snapshot capability.
                    </li>
                    <li class="li" id="emailMessageEvent">
                      <a name="emailMessageEvent"><!-- --></a><samp class="codeph apex_code">EmailMessageEvent</samp>—Feed item generated when an email is sent from a case in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">FacebookPost</samp>—Deprecated. Feed item generated when a Facebook post is created from a case in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">LinkPost</samp>—Feed item with a link capability.
                    </li>
                    <li class="li" id="milestoneEvent">
                      <a name="milestoneEvent"><!-- --></a><samp class="codeph apex_code">MilestoneEvent</samp>—Feed item generated when a case milestone is either completed or reaches a violation status. Contains a link to the case milestone.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">PollPost</samp>—Feed item with a poll capability. Viewers of the feed item are allowed to vote on the options in the poll.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">ProfileSkillPost</samp>—Feed item generated when a skill is added to a user’s profile.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">QuestionPost</samp>—Feed item generated when a question is asked.<p class="p" id="feedItemTypeCapabilities"><a name="feedItemTypeCapabilities"><!-- --></a>As of API version 33.0, a feed item of this type can have a content capability and a link capability.</p>
                    </li>
                    <li class="li" id="replyPost">
                      <a name="replyPost"><!-- --></a><samp class="codeph apex_code">ReplyPost</samp>—Feed item generated by a Chatter Answers reply.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">RypplePost</samp>—Feed item generated when a user posts thanks.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">SocialPost</samp>—Feed item generated when a social post is created from a case in Case Feed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">TextPost</samp>—Feed item containing text only.
                    </li>
                    <li class="li" id="trackedChange">
                      <a name="trackedChange"><!-- --></a><samp class="codeph apex_code">TrackedChange</samp>—Feed item created when one or more fields on a record have been changed.
                    </li>
                    <li class="li">
                      <samp class="codeph apex_code">UserStatus</samp>—Deprecated. A user's post to their own profile.
                    </li>
                  </ul>
                </div>
              </td>

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

            </tr>

            <tr>
              <td class="entry" headers="d754898e57" data-title="Name"><samp class="codeph apex_code">visibility</samp></td>

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

              <td class="entry" headers="d754898e63" data-title="Description">Type of users who can see a feed item.<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">AllUsers</samp>—Visibility is not limited to internal users.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">InternalUsers</samp>—Visibility is limited to internal users.
                  </li>
                </ul>
              </td>

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

            </tr>

          </tbody>

        </table>