Newer Version Available

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

describeAvailableQuickActions()

In API version 28.0, describes details about actions available for a specified parent. In API version 29.0 and greater, describes details about actions available for a specified context.

In the application, QuickActions are referred to as actions or publisher actions.

Note

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.
  • The parentType applies only to API version 28.0.
  • The contextType applies to API version 29.0 and greater.

Response

An array of DescribeAvailableQuickActionResult objects.

Faults

connection.exception errors