Action Links

An action link is a button on a feed element. Clicking an action link can take a user to a Web page, initiate a file download, or invoke an API call to Salesforce or to an external server. An action link includes a URL and an HTTP method, and can include a request body and header information, such as an OAuth token for authentication. Use action links to integrate Salesforce and third-party services into the feed so that users can drive productivity and accelerate innovation.

This feed item contains one action link group with two action links: Approve and Reject.

Approve and Reject action links on a feed item.

The workflow to create and post action links with a feed element:

  1. (Optional) Create an action link template.
  2. Make a request to /connect/action-link-group-definitions to define an action link group or to instantiate an action link group from a template. An action link group contains at least one action link.
  3. Make a request to /chatter/feed-elements to post a feed element and associate the action link with it.

Use these resources to work with action links.

ResourceHTTP MethodTask
/connect/action-link-group-definitionsPOSTCreate an action link group definition. To associate an action link with a feed element, first create an action link group definition. Then post a feed element with an associated actions capability.
/chatter/feed-elementsPOSTPost a feed element with an associated actions capability. Associate up to 10 action link groups with a feed element.
/connect/action-links/{actionLinkId}GETGet information about the status of an action link. The status of the action link in combination with the labelKey property of the Action Link Definition Input determines the text that displays in the UI.
/connect/action-links/{actionLinkId}PATCHUpdate the status of an action link. To trigger the API request for Api and ApiAsync action links, set the status to PendingStatus.
/connect/action-link-group-definitions/{actionLinkGroupId}GETGet information about an action link group definition. To get the action link group definition, the client must be the same client app that created the definition and the user must either be the user who created the definition or have View all Data permission.
/connect/action-link-group-definitions/{actionLinkGroupId}DELETEDelete an action link group definition. Deleting an action link group definition removes all references to it from feed elements. To delete the action link group definition, the client must be the same client app that created the definition and the user must either be the user who created the definition or have View all Data permission.
/connect/action-link-groups/{actionLinkGroupId}GETGet information about an action link group including state for the context user.
/connect/action-links/{actionLinkId}/diagnostic-infoGETGet diagnostic information returned when an action link executes. Diagnostic information is given only for users who can access the action link.
/chatter/feed-elements/{feedElementId}/capabilities/associated-actionsGETGet all the platform actions associated with a feed element. Action links are a type of platform action.
/chatter/feeds/{feedType}/{userId}/feed-elementsGETGet the feed elements of a specified feed type. If a feed element has action links associated with it, the action links data is returned in the associated actions capability.
/chatter/feeds/{feedType}/feed-elementsGETGet the feed elements of a specified feed type. If a feed element has action links associated with it, the action links data is returned in the associated actions capability.