QuickActionResult Class

After you initiate a quick action with the QuickAction class, use the QuickActionResult class for processing action results.

Namespace

QuickAction

QuickActionResult Methods

The following are methods for QuickActionResult. All are instance methods.

getErrors()

If an error occurs, an array of one or more database error objects, along with error codes and descriptions, is returned.

Signature

public List<Database.Error> getErrors()

Return Value

Type: List<Database.Error>

getIds()

The IDs of the QuickActions being processed.

Signature

public List<Id> getIds()

Return Value

Type: List<Id>

getSuccessMessage()

Returns the success message associated with the quick action.

Signature

public String getSuccessMessage()

Return Value

Type: String

isCreated()

Returns true if the action is created; otherwise, false.

Signature

public Boolean isCreated()

Return Value

Type: Boolean

isSuccess()

Returns true if the action completes successfully; otherwise, false.

Signature

public Boolean isSuccess()

Return Value

Type: Boolean