Action.Result Class

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

Invocable

The methods are for Action.Result.

  • clone()

    Creates a copy of the Invocable.Action.Result.

  • getAction()

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

  • getErrors()

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

  • 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.

  • 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.

  • isSuccess()

    Determines if an invocable action ran without errors.

Creates a copy of the Invocable.Action.Result.

public Object clone()

Type: Object

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

public Invocable.Action getAction()

Type: Invocable.Action

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

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

Type: List<Invocable.Action.Error>

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.

public Map<String,Object> getInvocationParameters()

Type: Map<String,Object>

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.

public Map<String,Object> getOutputParameters()

Type: Map<String,Object>

Determines if an invocable action ran without errors.

public Boolean isSuccess()

Type: Boolean

This method returns true if the invocable action ran successfully.