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.
Working with Action Links
Workflow
This feed item contains one action link group with one visible action link, Join.

The workflow to create and post action links with a feed element:
- (Optional) Create an action link template.
- Call ConnectApi.ActionLinks.createActionLinkGroupDefinition(communityId, actionLinkGroup) to define an action link group that contains at least one action link.
- Call ConnectApi.ChatterFeeds.postFeedElement(communityId, feedElement) to post a feed element and associate the action link with it.
Use these methods to work with action links.
| ConnectApi Method | Task |
|---|---|
|
ActionLinks.createActionLinkGroupDefinition(communityId,
actionLinkGroup) ActionLinks.deleteActionLinkGroupDefinition(communityId, actionLinkGroupId) ActionLinks.getActionLinkGroupDefinition(communityId, actionLinkGroupId) |
Create an action link group definition. To associate an action link group with a feed element, first create an action link group definition. Then post a feed element with an associated actions capability. |
| ChatterFeeds.postFeedElement(communityId, feedElement) | Post a feed element with an associated actions capability. Associate up to 10 action link groups with a feed element. |
| ActionLinks.getActionLink(communityId, actionLinkId) | Get information about an action link, including state for the context user. |
| ActionLinks.getActionLinkGroup(communityId, actionLinkGroupId) | Get information about an action link group including state for the context user. |
| ActionLinks.getActionLinkDiagnosticInfo(communityId, actionLinkId) | Get diagnostic information returned when an action link executes. Diagnostic information is given only for users who can access the action link. |
| ChatterFeeds.getFeedElementsFromFeed() | Get the feed elements from a specified feed type. If a feed element has action links associated with it, the action links data is returned in the feed element’s associated actions capability. |