---
schema_version: "1"
id: 4793f74afef91b156a02048b61e1aec2ce3f6502760b048cd93358a38d8acf4d
title: Action.OutputParameter Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Invocable_Action_OutputParameter.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 29460935e3e79c5f65e7ccb46b22b1904c0d39ad56c6f747c5ae1b6210e716e8
description: Contains methods about metadata returned by invocable actions.Gets a list of additional attributes for an invocable action output parameter.Gets the Apex class name of an output parameter for an invocable action.Gets the description of an output parameter of an invocable action.Gets the label of an output parameter of an invocable action.Gets the maximum number of occurrences for an output parameter of an invocable action.Gets the name of an output parameter of an invocable action.Gets a list of picklist values for an output parameter of an invocable action.Gets the sObject type of an output parameter of an invocable action.Gets the data type of an output parameter of an invocable action.
---
# Action.OutputParameter Class

Contains methods about metadata returned by invocable actions.

## Namespace

[Invocable](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Invocable.htm "The Invocable namespace provides classes for calling invocable actions from Apex.")

## Example

Invocable.Action action = Invocable.Action.createStandardAction('otherActionName');
List<Invocable.Action.DescribeResult> results = action.getDescribe();

for (Invocable.Action.DescribeResult result : results) {
    for (Invocable.Action.InputParameter input : result.getInputs()) {
        List<Invocable.Action.AdditionalAttribute> attrs = input.getAdditionalAttributes();
        if (attrs != null) {
            for (Invocable.Action.AdditionalAttribute attr : attrs) {
                System.debug('Attribute: ' + attr.getName());
                System.debug('Data Type: ' + attr.getDataType());

                // Handle collection vs single value
                if (attr.getIsCollection()) {
                    if (attr.getDataType() == 'STRING') {
                        List<String> stringValues = attr.getValueAsStringList();
                        System.debug('String Values: ' + stringValues);
                    }
                } else {
                    System.debug('Value: ' + attr.getValue());
                }
            }
        }
    }
}

- **[Action.OutputParameter Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_methods)**

## Action.OutputParameter Methods

The following are methods for Action.OutputParameter.

- **[getAdditionalAttributes()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getAdditionalAttributes)**  
    Gets a list of additional attributes for an invocable action output parameter.
- **[getApexClass()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getApexClass)**  
    Gets the Apex class name of an output parameter for an invocable action.
- **[getDescription()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getDescription)**  
    Gets the description of an output parameter of an invocable action.
- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getLabel)**  
    Gets the label of an output parameter of an invocable action.
- **[getMaxOccurs()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getMaxOccurs)**  
    Gets the maximum number of occurrences for an output parameter of an invocable action.
- **[getName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getName)**  
    Gets the name of an output parameter of an invocable action.
- **[getPicklistValues()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getPicklistValues)**  
    Gets a list of picklist values for an output parameter of an invocable action.
- **[getSObjectType()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getSObjectType)**  
    Gets the sObject type of an output parameter of an invocable action.
- **[getType()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_OutputParameter.htm#apex_Invocable_Action_OutputParameter_getType)**  
    Gets the data type of an output parameter of an invocable action.

### getAdditionalAttributes()

Gets a list of additional attributes for an invocable action output parameter.

#### Signature

public List<Invocable.Action.AdditionalAttribute> getAdditionalAttributes()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Invocable.Action.AdditionalAttribute](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_AdditionalAttribute.htm#apex_class_Invocable_Action_AdditionalAttribute "Contains methods to get metadata about attributes associated with invocable action parameters.")\>

### getApexClass()

Gets the Apex class name of an output parameter for an invocable action.

#### Signature

public String getApexClass()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

Apex class name of the output parameter of the invocable action.

### getDescription()

Gets the description of an output parameter of an invocable action.

#### Signature

public String getDescription()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

Description of the output parameter of the invocable action.

### getLabel()

Gets the label of an output parameter of an invocable action.

#### Signature

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

Label of the output parameter of the invocable action.

### getMaxOccurs()

Gets the maximum number of occurrences for an output parameter of an invocable action.

#### Signature

public Integer getMaxOccurs()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

Maximum number of occurrences for the output parameter of the invocable action. If occurrences are unbounded, returns -1.

### getName()

Gets the name of an output parameter of an invocable action.

#### Signature

public String getName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

Name of the output parameter of the invocable action.

### getPicklistValues()

Gets a list of picklist values for an output parameter of an invocable action.

#### Signature

public List<Invocable.Action.PicklistValue> getPicklistValues()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Invocable.Action.PicklistValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Invocable_Action_PicklistValue.htm#apex_class_Invocable_Action_PicklistValue "Contains methods to get metadata about a single value in a picklist used by invocable action parameters.")\>

### getSObjectType()

Gets the sObject type of an output parameter of an invocable action.

#### Signature

public String getSObjectType()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

SObject type of the output parameter of the invocable action.

### getType()

Gets the data type of an output parameter of an invocable action.

#### Signature

public String getType()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

Data type of the output parameter of the invocable action.