---
schema_version: "1"
id: c59f2436085c1ca38715ddfa22ebf1f4e9ea88efebe5495fe2ca8aec167a8c22
title: ConnectApi.FeedDirectoryItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_Feed_directory_item.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_Feed_directory_item.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 855fe1d5d459acd70cc3f8b88fd7845be39bbc775744a4c9285f4aa33ca5ff35
description: Definition of a feed.
---
# ConnectApi.FeedDirectoryItem

Definition of a feed.

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




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

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

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

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

            </tr>

          </thead>

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

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

              <td class="entry" headers="d759218e53" data-title="Description">Connect REST API resource URL for the feed elements.</td>

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

            </tr>

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

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

              <td class="entry" headers="d759218e53" data-title="Description">Connect REST API resource URL for the feed items of a specific feed.</td>

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

            </tr>

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

              <td class="entry" headers="d759218e50" data-title="Type">
                <samp class="codeph apex_code">ConnectApi​.FeedType</samp> Enum
              </td>

              <td class="entry" headers="d759218e53" data-title="Description">The feed type. One of these values:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">Bookmarks</samp>—<span class="ph" id="connectapi_feedtype_bookmarks"><a name="connectapi_feedtype_bookmarks"><!-- --></a>Contains all feed items saved as bookmarks by the context user.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Company</samp>—<span class="ph" id="connectapi_feedtype_company"><a name="connectapi_feedtype_company"><!-- --></a>Contains all feed items except feed items of type <samp class="codeph apex_code">TrackedChange</samp>. To see the feed item, the user must have sharing access to its parent.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">DirectMessageModeration</samp>—<span class="ph" id="DMModerationFeedDesc"><a name="DMModerationFeedDesc"><!-- --></a>Contains all direct messages that are flagged for moderation. The Direct Message Moderation feed is available only to users with Moderate Experiences Chatter Messages permissions.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">DirectMessages</samp>—<span class="ph" id="connectapi_feedtype_directMessages"><a name="connectapi_feedtype_directMessages"><!-- --></a>Contains all feed items of the context user’s direct messages.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Draft</samp>—Contains all the feed items that the context user drafted.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Files</samp>—<span class="ph" id="connectapi_feedtype_files"><a name="connectapi_feedtype_files"><!-- --></a>Contains all feed items that contain files posted by people or groups that the context user follows.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Filter</samp>—Contains the news feed filtered to contain feed items whose parent is a specified object type.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Groups</samp>—<span class="ph" id="connectapi_feedtype_groups"><a name="connectapi_feedtype_groups"><!-- --></a>Contains all feed items from all groups the context user either owns or is a member of.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Home</samp>—Contains all feed items associated with any managed topic in an Experience Cloud site.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Isolated</samp>—Contains all the feed items and comments that are isolated.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Landing</samp>—<span class="ph" id="landingFeed"><a name="landingFeed"><!-- --></a>Contains all feed items that best drive user engagement when the feed is requested. Allows clients to avoid an empty feed when there aren’t many personalized feed items.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Moderation</samp>—<span class="ph" id="moderationFeedDefn"><a name="moderationFeedDefn"><!-- --></a>Contains all feed items that are flagged for moderation, except direct messages. The moderation feed is available only to users with Moderate Experiences Feeds permissions.</span>
                  </li>
                  <li class="li" id="muteFeedEnum">
                    <a name="muteFeedEnum"><!-- --></a><samp class="codeph apex_code">Mute</samp>—Contains all feed items that the context user muted.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">News</samp>—<span class="ph" id="connectapi_feedtype_news"><a name="connectapi_feedtype_news"><!-- --></a>Contains all updates for people the context user follows, groups the user is a member of, and files and records the user is following. Contains all updates for records whose parent is the context user.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">PendingReview</samp>—<span class="ph" id="connectapi_feedtype_pendingReview"><a name="connectapi_feedtype_pendingReview"><!-- --></a>Contains all feed items and comments that are pending review.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">People</samp>—<span class="ph" id="connectapi_feedtype_people"><a name="connectapi_feedtype_people"><!-- --></a>Contains all feed items posted by all people the context user follows.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Record</samp>—<span class="ph" id="connectapi_feedtype_record"><a name="connectapi_feedtype_record"><!-- --></a>Contains all feed items whose parent is a specified record, which could be a group, user, object, file, or any other standard or custom object. When the record is a group, the feed also contains feed items that mention the group. When the record is a user, the feed contains only feed items on that user. You can get another user’s record feed.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Streams</samp>—<span class="ph" id="connectapi_feedtype_streams"><a name="connectapi_feedtype_streams"><!-- --></a>Contains all feed items for any combination of up to 25 feed-enabled entities that the context user subscribes to in a stream. Examples of feed-enabled entities include people, groups, and records,</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">To</samp>—<span class="ph" id="connectapi_feedtype_to"><a name="connectapi_feedtype_to"><!-- --></a>Contains all feed items with mentions of the context user. Contains feed items the context user commented on and feed items created by the context user that are commented on.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Topics</samp>—<span class="ph" id="connectapi_feedtype_topics"><a name="connectapi_feedtype_topics"><!-- --></a>Contains all feed items that include the specified topic.</span>
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">UserProfile</samp>—Contains feed items created when a user changes records that can be tracked in a feed. Contains feed items whose parent is the user and feed items that @mention the user. This feed is different than the news feed, which returns more feed items, including group updates. You can get another user’s user profile feed.
                  </li>
                </ul>
              </td>

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

            </tr>

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

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

              <td class="entry" headers="d759218e53" data-title="Description">Connect REST API resource URL for a specific feed</td>

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

            </tr>

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

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

              <td class="entry" headers="d759218e53" data-title="Description">A <em class="ph i">key prefix</em> is the first three characters of a record ID, which specifies the object type.<p class="p">For filter feeds, this value is the key prefix associated with the object type used to filter this feed. All feed items in this feed have a parent whose object type matches this key prefix value. For non-filter feeds, this value is <samp class="codeph apex_code"><span class="keyword">null</span></samp>.</p>
              </td>

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

            </tr>

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

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

              <td class="entry" headers="d759218e53" data-title="Description">Localized label of the feed</td>

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

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.FeedDirectory](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_Feed_directory.htm "Directory of feeds and favorites.")