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.DescribeResult Methods
The following are methods for Action.DescribeResult.
getAction()
Signature
public Invocable.Action getAction()
Return Value
Type: Invocable.Action
getAllowsTransactionControl()
Signature
public Boolean getAllowsTransactionControl()
Return Value
Type: Boolean
This method returns true if the invocable action allows transaction control.
getConfigurationEditor()
Signature
public String getConfigurationEditor()
getDescription()
Signature
public String getDescription()
getGenericTypes()
Signature
public List<Invocable.Action.GenericType> getGenericTypes()
Return Value
Type: List<Invocable.Action.GenericType>
getHasCallout()
Signature
public Boolean getHasCallout()
Return Value
Type: Boolean
This method returns true if the invocable action makes external callouts.
getHasSystemGeneratedOutput()
Signature
public Boolean getHasSystemGeneratedOutput()
Return Value
Type: Boolean
This method returns true if the invocable action has system-generated output.
getInputs()
Signature
public List<Invocable.Action.InputParameter> getInputs()
Return Value
getMethodDescription()
Signature
public String getMethodDescription()
getMethodLabel()
Signature
public String getMethodLabel()
getMethodName()
Signature
public String getMethodName()
getOutputs()
Signature
public List<Invocable.Action.OutputParameter> getOutputs()
Return Value
getTargetEntityName()
Signature
public String getTargetEntityName()