---
schema_version: "1"
id: 75472ffab0fbcd76ae2b7fd26869a10576d3710491412217cd99f7ab6bed211f
title: getAvailableActionFields
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-getavailableactionfields.md
canonical_url: https://developer.salesforce.com/docs/platform/case-feed-dev-guide/guide/quickaction-api-getavailableactionfields.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f95960260761b183ad182ed11a51ebf1dbf1b6c56acf82d5f94c468c20a9f63a
products:
  - Publisher and Quick Action Developer Guide
  - Platform Developer Content
---

# getAvailableActionFields

Allows custom components to get a list of the available fields for a specific action on a record page.

## Arguments

|Name|Type|Description|
|----|----|-----------|
|actionName|string|The name of the quick action that you want to access.|

The actionName parameter starts with the Salesforce object, followed by the quick action name. For example:

```nolang
actionName: "Case.LogACall"
```

## Sample Code

```javascript
getAvailableActionFields : function( cmp, event, helper) {
        var actionAPI = cmp.find("quickActionAPI");
        var args = {actionName :"Case.LogACall", entityName:"Case" };
        actionAPI.getAvailableActionFields(args).then(function(result){
            //All available action fields shown for Log a Call
        }).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,
fields:
    {fieldName: "Subject", type: "textEnumLookup"}
    {fieldName: "Description", type: "TextArea"}
    {fieldName: "WhoId", type: "Lookup"},
errors: []
```

