Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.FeedElement

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

This class is abstract.

Superclass of:

Property Name Type Description Available Version
body ConnectApi.​FeedBody Information about the feed element. 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 A container for all capabilities that can be included with a feed element. 31.0
createdDate Datetime 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 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.
  • 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 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