Namespace
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.InputParameter Methods
The following are methods for Action.InputParameter.
getAdditionalAttributes()
Signature
public List<Invocable.Action.AdditionalAttribute> getAdditionalAttributes()
Return Value
getApexClass()
Signature
public String getApexClass()
getByteLength()
Signature
public Integer getByteLength()
getConfiguration()
Signature
public Boolean getConfiguration()
Return Value
Type: Boolean
This method returns true if the input parameter of the invocable action is a configuration parameter.
getDefaultValue()
Signature
public Object getDefaultValue()
Return Value
Type: Object
The default value, or null if no default is defined.
getDescription()
Signature
public String getDescription()
getLabel()
Signature
public String getLabel()
getMaxOccurs()
Signature
public Integer getMaxOccurs()
Return Value
Type: Integer
Maximum number of occurrences for the input parameter of the invocable action. If occurrences are unbounded, returns -1.
getName()
Signature
public String getName()
getPicklistValues()
Signature
public List<Invocable.Action.PicklistValue> getPicklistValues()
Return Value
getPlaceholderText()
Signature
public String getPlaceholderText()
getRequired()
Signature
public Boolean getRequired()
Return Value
Type: Boolean
This method returns true if the input parameter of the invocable action is required.
getSObjectType()
Signature
public String getSObjectType()
getToolingType()
Signature
public String getToolingType()