ActionResult Class

Contains information about the execution of an actionable notification.

Messaging

This ActionResult instance represents the successful execution of an actionable notification.

This ActionResult instance represents the unsuccessful execution of an actionable notification.

The following are methods for ActionResult.

  • getErrorCode()

    If an error occurred, returns an object that provides the error code and a description.

  • getMessage()

    Returns the success or error message that displays for the user.

  • isSuccess()

    Returns true if the action executed successfully; otherwise returns false.

If an error occurred, returns an object that provides the error code and a description.

public Messaging.ActionError getErrorCode()

Type: Messaging.ActionError

Returns the success or error message that displays for the user.

public String getMessage()

Type: String

Returns true if the action executed successfully; otherwise returns false.

public Boolean isSuccess()

Type: Boolean