---
schema_version: "1"
id: d8e2341aa6a641f0187b0dd1878a799c206d5e3670d89e7777e63e63cfef4b7f
title: Knowledge__Feed
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_knowledge__feed.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledge__feed.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7a02d2add1976c420d6bb82669bc725598d405d66c3cda63add506931e10c4e8
description: Represents the feed for a knowledge article. This object is available in API version 39.0 and later.
---
# Knowledge\_\_Feed

Represents the feed for a knowledge article. This object is available in API version 39.0 and later.

For additional information about feeds, see [FeedItem](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_feeditem.htm "FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This object is available in API version 21.0 and later. This object replaces FeedPost.").

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

By default, the prefix for this object name is Knowledge and that is the value shown in this reference. However, this prefix can be modified by changing the **Object Name** for the Knowledge\_\_kav object in Object Manager.

## Supported Calls

delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

Lightning Knowledge must be enabled in your org.

## Fields

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


          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d1080307e118">Field</th>

              <th class="featureTableHeader  " id="d1080307e121">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">BestCommentId</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the comment marked as best answer on a question post.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">Body</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">textarea</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The body of the feed item. <span class="ph" id="BodyDescReqWhenTextPost"><a name="BodyDescReqWhenTextPost"><!-- --></a>Required when
                      <span class="keyword parmname">Type</span> is <samp class="codeph nolang">TextPost</samp> or <samp class="codeph nolang">AdvancedTextPost</samp>. Optional when <span class="keyword parmname">Type</span> is <samp class="codeph nolang">ContentPost</samp> or
                      <samp class="codeph nolang">LinkPost</samp>.</span>
                  </dd>

                  <dd class="dd">Although a value for <span class="keyword parmname">Body</span> is not
                    required for the <samp class="codeph nolang">ContentPost</samp> type, an
                    attachment is required. If an attachment isn’t present, the type changes to
                    <samp class="codeph nolang">TextPost</samp> or <samp class="codeph nolang">AdvancedTextPost</samp>, depending on the API version. <samp class="codeph nolang">TextPost</samp> and <samp class="codeph nolang">AdvancedTextPost</samp> do require a value for <span class="keyword parmname">Body</span>.<div class="box message confirm">
                      <div class="inner">
                        <div class="bd">
                          <div class="media">
                            <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_tip.png" alt="Tip">
                            <div class="mediaBd">
                              <h4 class="mbs">Tip</h4>
                              <p>See the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_feeditem.htm#isRichTextDes"><span class="keyword parmname">IsRichText</span></a> field for a list of
                                HTML tags supported in the body of rich text posts.</p>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">CommentCount</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The number of comments associated with this feed item.</dd>


                </dl>

                <div class="box message confirm">
                  <div class="inner">
                    <div class="bd">
                      <div class="media">
                        <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_tip.png" alt="Tip">
                        <div class="mediaBd">
                          <h4 class="mbs">Tip</h4>
                          <p>In a feed that supports pre-moderation, <span class="keyword parmname">CommentCount</span> isn’t updated until a comment is
                            published. For example, say that you comment on a post that already has one
                            published comment and your comment triggers moderation. Now there are two comments
                            on the post, but the count says there's only one. In a moderated feed, comments
                            aren’t counted until approved by an admin or someone with Can Approve Feed Post
                            and Comment or Modify All Data.
                          </p><p class="p">Feed moderation has implications on how you
                            retrieve feed comments. In a moderated feed, rather than retrieving comments by
                            looping through <span class="keyword parmname">CommentCount</span>, go
                            through pagination until the end of comments is returned.</p>
                          <p></p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">InsertedById</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">ID of the user who added this item to the feed. For example, if an
                    application migrates posts and comments from another application into a feed,
                    the <span class="keyword parmname">InsertedBy</span> value is set to the ID of the context
                    user.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">IsRichText</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the feed item <span class="keyword parmname">Body</span> contains rich
                    text. If you post a rich text feed comment using SOAP API, set
                    <span class="keyword parmname">IsRichText</span> to <samp class="codeph nolang">true</samp>
                    and escape HTML entities from the body. Otherwise, the post is rendered as
                    plain text.<p class="p">Rich text supports the following HTML tags:</p>
                    <ul class="ul bulletList">
                      <li class="li">
                        <samp class="codeph nolang">&lt;p&gt;</samp>
                        <div class="box message confirm">
                          <div class="inner">
                            <div class="bd">
                              <div class="media">
                                <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_tip.png" alt="Tip">
                                <div class="mediaBd">
                                  <h4 class="mbs">Tip</h4>
                                  <p>Though the
                                    <samp class="codeph nolang">&lt;br&gt;</samp> tag isn’t supported, you
                                    can use <samp class="codeph nolang">&lt;p&gt;&amp;nbsp;&lt;/p&gt;</samp> to
                                    create lines.
                                  </p>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </li>

                      <li class="li"><samp class="codeph nolang">&lt;a&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;b&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;code&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;i&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;u&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;s&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;ul&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;ol&gt;</samp></li>

                      <li class="li"><samp class="codeph nolang">&lt;li&gt;</samp></li>

                      <li class="li">
                        <samp class="codeph nolang">&lt;img&gt;</samp>
                        <p class="p">The <samp class="codeph nolang">&lt;img&gt;</samp> tag is accessible only through
                          the API and must reference files in Salesforce similar to this example:
                          <span class="ph filepath">&lt;img
                            src="sfdc://069B0000000omjh"&gt;&lt;/img&gt;</span>
                        </p>
                      </li>

                    </ul>
                    <div class="box message info">
                      <div class="inner">
                        <div class="bd">
                          <div class="media">
                            <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png" alt="Note">
                            <div class="mediaBd">
                              <h4 class="mbs">Note</h4>
                              <p>In API version 35.0 and later, the system replaces special
                                characters in rich text with escaped HTML. In API version 34.0 and prior,
                                all rich text appears as a plain-text representation.</p>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">LikeCount</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The number of likes associated with this feed item.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">LinkUrl</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">url</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The URL of a <samp class="codeph nolang">LinkPost</samp>.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">ParentId</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">ID of the Knowledge article to which the feed item is related.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">RelatedRecordId</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">
                    <span class="ph" id="relatedrecordid_descrip_short"><a name="relatedrecordid_descrip_short"><!-- --></a>ID of the ContentVersion record
                      associated with a <samp class="codeph nolang">ContentPost</samp>. For WDC
                      thanks posts, it’s the ID of the WorkThanks object associated with a <samp class="codeph nolang">RypplePost</samp>. This field is typically null for
                      all posts except <samp class="codeph nolang">ContentPost</samp> and
                      <samp class="codeph nolang">RypplePost</samp>.</span>
                    <p class="p"><span class="ph" id="relatedrecordid_descrip2"><a name="relatedrecordid_descrip2"><!-- --></a>For example, set this field to an existing
                        ContentVersion ID and post it to a feed with <span class="keyword parmname">Type</span> set to <samp class="codeph nolang">ContentPost</samp>.</span></p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">Title</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The title of the feed item. When the <span class="keyword parmname">Type</span> is <samp class="codeph nolang">LinkPost</samp>, the
                    <span class="keyword parmname">LinkUrl</span> is the URL and this field
                    is the link name. The <span class="keyword parmname">Title</span> field can
                    be updated on posts of <span class="keyword parmname">Type</span>
                    <samp class="codeph nolang">QuestionPost</samp>.
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d1080307e118" data-title="Field">
                <span class="keyword parmname">Type</span>
              </td>

              <td class="entry" headers="d1080307e121" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The type of feed item. Except for <samp class="codeph nolang">ContentPost</samp>, <samp class="codeph nolang">LinkPost</samp>, and
                    <samp class="codeph nolang">TextPost</samp>, don’t create feed items of
                    other types directly from the API.<a name="TypePicklist"><!-- --></a>
                    <ul class="ul bulletList" id="TypePicklist">
                      <li class="li">
                        <p class="p"><samp class="codeph nolang">ActivityEvent</samp>—indirectly
                          generated event when a user or the API adds a <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_task.htm#sforce_api_objects_task" title="Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities.">Task</a> associated with a feed-enabled parent
                          record (excluding email tasks on cases). Also occurs when a user or the
                          API adds or updates a Task or <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_event.htm#sforce_api_objects_event" title="Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.">Event</a> associated with a case record
                          (excluding email and call logging).</p>

                        <p class="p">For a recurring Task with CaseFeed disabled, one event is generated for
                          the series only. For a recurring Task with CaseFeed enabled, events are
                          generated for the series and each occurrence.</p>

                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="advancedTextPost"><a name="advancedTextPost"><!-- --></a>AdvancedTextPost</samp>—created when a user posts a group
                        announcement and, in Lightning Experience as of API version 39.0 and
                        later, when a user shares a post.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">AnnouncementPost</samp>—Not
                        used.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ApprovalPost</samp>—generated when
                        a user submits an approval.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">BasicTemplateFeedItem</samp>—Not
                        used.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CanvasPost</samp>—a post made by a
                        canvas app posted on a feed.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CollaborationGroupCreated</samp>—generated when a user creates a
                        public group.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CollaborationGroupUnarchived</samp>—Not used.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="contentPost"><a name="contentPost"><!-- --></a>ContentPost</samp>—a post with an attached file.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CreatedRecordEvent</samp>—generated
                        when a user creates a record from the publisher.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DashboardComponentAlert</samp>—generated when a dashboard metric
                        or gauge exceeds a user-defined threshold.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DashboardComponentSnapshot</samp>—created when a user posts a
                        dashboard snapshot on a feed.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="linkPost"><a name="linkPost"><!-- --></a>LinkPost</samp>—a
                        post with an attached URL.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">PollPost</samp>—a poll posted on a
                        feed.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ProfileSkillPost</samp>—generated
                        when a skill is added to a user’s Chatter profile.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="questionPost"><a name="questionPost"><!-- --></a>QuestionPost</samp>—generated when a user posts a question.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ReplyPost</samp>—generated when
                        Chatter Answers posts a reply.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">RypplePost</samp>—generated when a
                        user creates a Thanks badge in WDC.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="textPost"><a name="textPost"><!-- --></a>TextPost</samp>—a
                        direct text entry on a feed.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="type_trackedchange"><a name="type_trackedchange"><!-- --></a>TrackedChange</samp>—a change or group of changes to a tracked
                        field.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">UserStatus</samp>—automatically
                        generated when a user adds a post. Deprecated.
                      </li>

                    </ul>
                    <div class="p" id="case_feed_type_values">
                      <a name="case_feed_type_values"><!-- --></a>The following values appear in the
                      <span class="keyword parmname">Type</span> picklist for all feed
                      objects but apply only to CaseFeed: <ul class="ul bulletList">
                        <li class="li">
                          <samp class="codeph nolang">AttachArticleEvent</samp>—generated event when a user attaches
                          an article to a case.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">CallLogPost</samp>—generated
                          event when a user logs a call for a case through the user interface. CTI
                          calls also generate this event.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">CaseCommentPost</samp>—generated
                          event when a user adds a case comment for a case object.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">ChangeStatusPost</samp>—generated
                          event when a user changes the status of a case.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">ChatTranscriptPost</samp>—generated event when Chat transcript
                          is saved to a case.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">EmailMessageEvent</samp>—generated event when an email related
                          to a case object is sent or received.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">FacebookPost</samp>—generated
                          when a Facebook post is created from a case. Deprecated.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">MilestoneEvent</samp>—generated
                          when a case milestone is completed or reaches violation status.
                        </li>

                        <li class="li">
                          <samp class="codeph nolang">SocialPost</samp>—generated when
                          a social post is created from a case.
                        </li>

                      </ul>
                    </div>
                    <div class="box message info">
                      <div class="inner">
                        <div class="bd">
                          <div class="media">
                            <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png" alt="Note">
                            <div class="mediaBd">
                              <h4 class="mbs">Note</h4>
                              <p>If you set <span class="keyword parmname">Type</span> to
                                <samp class="codeph nolang">ContentPost</samp>, also specify <span class="keyword parmname">ContentData</span> and <span class="keyword parmname">ContentFileName</span>.
                              </p>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </dd>


                </dl>

              </td>

            </tr>

          </tbody>

        </table>