Action.AdditionalAttribute Class
Contains methods to get metadata about attributes associated with invocable action parameters.
Additional attributes extend invocable action parameters with custom metadata beyond the standard parameter properties. Use the AdditionalAttribute class to access this extensibility metadata when working with invocable actions.
For type-safe access to collection values, use the typed getter methods such as getValueAsStringList(), getValueAsIntegerList(), getValueAsDoubleList(), or getValueAsBooleanList(). These methods return null when the requested data type doesn’t match the attribute’s actual data type. Check getDataType() and getIsCollection() before calling typed getters to ensure you use the appropriate method.
The following are methods for Action.AdditionalAttribute.
-
Gets the Apex class name of an additional attribute for an invocable action parameter.
-
Gets the data type of an additional attribute for an invocable action parameter.
-
Indicates whether an additional attribute for an invocable action parameter contains a collection of values.
-
Gets the name of an additional attribute for an invocable action parameter.
-
Gets the value for an additional attribute for an invocable action parameter.
-
Returns a value as a list of Booleans when
isCollectionistrueanddataTypeis BOOLEAN. -
Returns a value as a list of dates when
isCollectionistrueanddataTypeis DATE. -
Returns a value as a list of doubles when
isCollectionistrueanddataTypeis DOUBLE. -
Returns a value as a list of integers when
isCollectionistrueanddataTypeis INTEGER. -
Returns a value as a list when
isCollectionistrue. The list elements have the type specified by thedataTypeproperty. -
Returns a value as a list of longs when
isCollectionistrueanddataTypeis LONG. -
Returns a value as a list of strings when
isCollectionistrueanddataTypeis STRING.
Gets the Apex class name of an additional attribute for an invocable action parameter.
public String getApexClass()
Type: String
Apex class name of the additional attribute for the invocable action parameter.
Gets the data type of an additional attribute for an invocable action parameter.
public String getDataType()
Type: String
Data type of the additional attribute for the invocable action parameter. For example: STRING, INTEGER, BOOLEAN, DOUBLE, LONG, DATE.
Indicates whether an additional attribute for an invocable action parameter contains a collection of values.
public Boolean getIsCollection()
Type: Boolean
This method returns true if the additional attribute for the invocable action parameter is a collection.
Gets the name of an additional attribute for an invocable action parameter.
public String getName()
Type: String
Name of the additional attribute for the invocable action parameter.
Gets the value for an additional attribute for an invocable action parameter.
public Object getValue()
Type: Object
Value of the additional attribute for the invocable action parameter. Cast to the appropriate type based on the dataType and isCollection.
Returns a value as a list of Booleans when isCollection is true and dataType is BOOLEAN.
public List<Boolean> getValueAsBooleanList()
List of Boolean values, or null if not a Boolean collection.
Returns a value as a list of dates when isCollection is true and dataType is DATE.
public List<Date> getValueAsDateList()
List of date values, or null if not a date collection.
Returns a value as a list of doubles when isCollection is true and dataType is DOUBLE.
public List<Double> getValueAsDoubleList()
List of double values, or null if not a double collection.
Returns a value as a list of integers when isCollection is true and dataType is INTEGER.
public List<Integer> getValueAsIntegerList()
List of integer values, or null if not an integer collection.
Returns a value as a list when isCollection is true. The list elements have the type specified by the dataType property.
public List<ANY> getValueAsList()
Type: List<Object>
List of values type according to dataType, or null if not a collection.
Returns a value as a list of longs when isCollection is true and dataType is LONG.
public List<Long> getValueAsLongList()
List of long values, or null if not a long collection.
Returns a value as a list of strings when isCollection is true and dataType is STRING.
public List<String> getValueAsStringList()
List of string values, or null if not a string collection.