---
schema_version: "1"
id: 2623a102c9de1b76123deb6253135edd8785504a220e8a51370c5cb20ada8965
title: getAvailableActions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/case_feed_dev_guide/guides/quickactions/quickaction-api-getavailableactions.md
canonical_url: https://developer.salesforce.com/docs/platform/case-feed-dev-guide/guide/quickaction-api-getavailableactions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e3f67f99927aafca5b0ceb2c94250fb0b0ef042015f3f3e54094a90e241e4f69
products:
  - Publisher and Quick Action Developer Guide
  - Platform Developer Content
---

# getAvailableActions

Allows custom components to get a list of the available actions on a record page.

## Arguments

None.

## Sample Code

```javascript
getAvailableActions : function( cmp, event, helper) {
        var actionAPI = cmp.find("quickActionAPI");
        actionAPI.getAvailableActions().then(function(result){
            //All available actions shown;
        }).catch(function(e){
            if(e.errors){
                //If the specified action isn't found on the page, show an error message in the my component 
            }
        });
    }

```

## Response

Returns a Promise. Success resolves to a response object. The Promise is rejected on error response.

```nolang
success: true,
actions:
    {actionName: "Case._LightningUpdateCase", recordId: "recordId", type: "QuickAction"}
    {actionName: "FeedItem.TextPost", recordId: "recordId", type: "QuickAction"}
    {actionName: "Case.LogACall", recordId: "recordId", type: "QuickAction"}
    {actionName: "Case.SendEmail", recordId: "recordId", type: "QuickAction"}
errors: []
```

