ConnectApi.​FeedElement Class

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

This class is abstract.

Property Name Type Description Available Version
body ConnectApi.​FeedBody Information about the feed element.
Important

Important

Use the header.text property as the default value for rendering text because the body.text property can be null.

22.0
capabilities ConnectApi.​FeedElement​Capabilities Class A container for all capabilities that can be included with a feed element. 31.0
createdDate Datetime An 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:
  • Bundle—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.
  • FeedItem—A feed item has a single parent and is scoped to one community or across all communities. 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.
  • Recommendation—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.
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 An ISO 8601 format date string, for example, 2011-02-25T18:24:31.000Z. 31.0
parent ConnectApi.​ActorWithId Feed element’s parent 28.0
relativeCreated​Date 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