Newer Version Available

This content describes an older version of this product. View Latest

Action.Result Class

Contains methods to retrieve results from invocable actions called from Apex code.

Namespace

Invocable

Action.Result Methods

The methods are for Action.Result.

clone()

Creates a copy of the Invocable.Action.Result.

Signature

public Object clone()

Return Value

Type: Object

getAction()

Gets the invocable action that was invoked and caused a result to be returned.

Signature

public Invocable.Action getAction()

Return Value

Type: Invocable.Action

getErrors()

Gets a list of errors that were returned by an invocable action.

Signature

public List<Invocable.Action.Error> getErrors()

Return Value

Type: List<Invocable.Action.Error>

getInvocationParameters()

Gets a list of the parameter values set for an invocable action. This method returns a list that contains the input parameter values for each invocation of an action. Each map in the list contains a key for the name of each input parameter.

Signature

public Map<String,Object> getInvocationParameters()

Return Value

Type: Map<String,Object>

getOutputParameters()

Gets a list of the parameter values returned by an invocable action. This method returns a list that contains the result for each invocation of an action. Each map in the list contains a key for the name of each output parameter.

Signature

public Map<String,Object> getOutputParameters()

Return Value

Type: Map<String,Object>

isSuccess()

Determines if an invocable action ran without errors.

Signature

public Boolean isSuccess()

Return Value

Type: Boolean

This method returns true if the invocable action ran successfully.