No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ConnectApi.ActionLinkDefinitionInput Class
Usage
| Context Variable | Description |
|---|---|
| {!actionLinkId} | The ID of the action link the user executed. |
| {!actionLinkGroupId} | The ID of the action link group containing the action link the user executed. |
| {!communityId} | The ID of the community in which the user executed the action link. The value for your internal organization is the empty key "000000000000000000". |
| {!communityUrl} | The URL of the community in which the user executed the action link. The value for your internal organization is empty string "". |
| {!orgId} | The ID of the organization in which the user executed the action link. |
| {!userId} | The ID of the user that executed the action link. |
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| actionType | ConnectApi.ActionLinkType | Defines the type of action link. Values are:
Use Ui if you need to load a page before the user performs an action, for example, to have the user provide input or view something before the action happens. |
Required Can be defined in an action link template. |
33.0 |
| actionUrl | String | The action link URL. For example, for a Ui action link, the URL may be a Web page. For a Download action link, the URL is a link to the file to download. Ui and Download action link URLs are provided to clients. For an Api or ApiAsync action link, the URL may be a REST resource. Api and ApiAsync action link URLs aren’t provided to clients. Links to Salesforce can be relative. All other links must be absolute and start with https://. | Required Can be defined in an action link template. |
33.0 |
| excludedUserId | String | ID of a single user to exclude from performing the action. If you specify an excludedUserId, you can’t specify a userId. | Optional Can be defined in an action link template using the User Visibility and Custom User Alias fields. |
33.0 |
| groupDefault | Boolean | true if this action is the default action link in the action link group; false otherwise. There can be only one default action link per action link group. The default action link gets distinct styling in the Salesforce UI. | Optional Can be defined in an action link template. |
33.0 |
| headers | List<ConnectApi.RequestHeaderInput> | The request headers for the Api and ApiAsync action link types. | Optional Can be defined in an action link template. |
33.0 |
| labelKey | String | Key for the set of labels to show in the user
interface. A set includes labels for these states: new, pending,
success, failed. For example, if you use the Approve key, you get these
labels: Approve, Pending, Approved, Failed.
For a complete list of keys and labels, see Action Links Labels. |
Required Can be defined in an action link template. |
33.0 |
| method | ConnectApi.HttpRequestMethod | One of these HTTP methods:
|
Required Can be defined in an action link template. |
33.0 |
| requestBody | String | The request body for Api action links. | Optional Can be defined in an action link template. |
33.0 |
| requiresConfirmation | Boolean | true if the action results in something that should be confirmed, such as a delete; false otherwise. | Required Can be defined in an action link template. |
33.0 |
| userId | String | The ID of the user who can execute the action. If not specified or null, any user can execute the action. If you specify a userId, you can’t specify an excludedUserId. | Optional Can be defined in an action link template using the User Visibility and Custom User Alias fields. |
33.0 |