Newer Version Available

This content describes an older version of this product. View Latest

Feed Element Capabilities Input

A container for all capabilities that can be included when creating a new feed element.

In API versions 30.0 and earlier, every feed item supported comments, likes, topics, and so on. In versions 31.0 and later, every feed item (and feed element) can have a unique set of capabilities. If a capability property exists on a feed element, that capability is available, even if the capability property doesn’t have a value. For example, if the ChatterLikes capability property exists on a feed element (with or without a value), the context user can like that feed element. If the capability property doesn’t exist, it isn’t possible to like that feed element. A capability can also contain associated data. For example, the Moderation capability contains data about moderation flags.

XML example
1<capabilities>
2   <associatedActions>
3      <actionLinkGroupIds>
4         <actionLinkGroupId/>0Agxx00000000d1CAA<actionLinkGroupId/>
5         <actionLinkGroupId/>0Agxx00000000d2DFY<actionLinkGroupId/>
6      </actionLinkGroupIds>
7   </associatedActions>
8   <bookmarksCapability>
9      <isBookmarkedByCurrentUser>false</isBookmarkedByCurrentUser>
10   </bookmarksCapability>
11   <contentCapability>
12      <contentDocumentId>069D00000001pyS</contentDocumentId>
13   </contentCapability>
14</capabilities>
JSON example
1"capabilities": {
2   "associatedActions": {
3      "actionLinkGroupIds":["0Agxx00000000d1CAA", "0Agxx00000000d2DFY"]
4   },
5   "bookmarks": {
6      "isBookmarkedByCurrentUser": false
7   },
8   "content": {
9      "contentDocumentId": "069D00000001pyS"
10   }
11}
Properties
Name Type Description Required or Optional Available Version
associated​Actions Associated Actions Capability Input Describes action links that can be created or updated on a feed element. To associate an action link group with a feed element, the client must be the same connected app that created the action link group definition and the user must either be the user who created the definition or have “View all Data” permission. Optional 31.0
bookmarks Bookmarks Capability Input Create or update a bookmark on a feed element. Optional 32.0
canvas Canvas Capability Input Create or update a canvas app associated with a feed element. Optional 32.0
content Content Capability Input Attach or update a file with a feed element. Use this class to attach a new file or update a file that has already been uploaded to Salesforce. Optional 32.0
link Link Capability Input Create or update a link attached to a feed element. Optional 32.0
poll Poll Capability Input Create, update, or vote on a poll attached to a feed element. Optional 32.0
questionAnd​Answers Question and Answers Capability Input Create a question feed element or set the best answer of the existing question feed element. Optional 32.0