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.
describeAvailableQuickActions()
Syntax
1DescribeAvailableQuickActionResult [] = connection.describeAvailableQuickActions(string parentOrContextType );Usage
Use describeAvailableQuickActions() to get the list of actions whose parent (API version 28.0) or context (API version 29.0 and greater) entity name is supplied as well as standard and global actions. The describeAvailableQuickActions() call uses the parent entity name, such as “Account”, or “null” for global actions, or in API version 29.0 and greater, the context, to return an array of DescribeAvailableQuickActionResult.
Sample—Java
This sample retrieves and displays the available action information for the Account object.
1public void example() throws Exception {
2 DescribeAvailableQuickActionResult[] aResult =
3 conn.describeAvailableQuickActions("Account");
4 for(DescribeAvailableQuickActionResult ar : aResult) {
5 System.out.println("Action label: " + ar.getLabel());
6 System.out.println("Action name: " + ar.getName());
7 System.out.println("Action type: " + ar.getType());
8 }
9}Arguments
| Name | Type | Description |
|---|---|---|
| parentOrContextType | string | Either a standard or custom object.
|
Response
An array of DescribeAvailableQuickActionResult objects.
Faults
connection.exception errors