---
schema_version: "1"
id: 2d0c10cb1633c97d9744a0e4ba4eea7033d7cbb1931fd4e39ae200b767eff352
title: QuickActionResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_quickaction_quickactionresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5075259da7b9138584ea433c5262d6e4929426be88bf33f0b6213488d5fac6e4
description: After you initiate a quick action with the QuickAction class, use the QuickActionResult class for processing action results.If an error occurs, an array of one or more database error objects, along with error codes and descriptions, is returned.The IDs of the QuickActions being processed.Returns the success message associated with the quick action.Returns true if the action is created; otherwise, false.Returns true if the action completes successfully; otherwise, false.
---
# QuickActionResult Class

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

## Namespace

[QuickAction](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_QuickAction.htm "The QuickAction namespace provides classes and methods for quick actions.")

#### See Also

- [QuickAction Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_system_quickaction.htm#apex_class_system_quickaction "Use Apex to request and process actions on objects that allow custom fields, on objects that appear in a Chatter feed, or on objects that are available globally.")

## QuickActionResult Methods

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

- **[getErrors()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm#apex_QuickAction_QuickActionResult_getErrors)**  
    If an error occurs, an array of one or more database error objects, along with error codes and descriptions, is returned.
- **[getIds()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm#apex_QuickAction_QuickActionResult_getIds)**  
    The IDs of the QuickActions being processed.
- **[getSuccessMessage()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm#apex_QuickAction_QuickActionResult_getSuccessMessage)**  
    Returns the success message associated with the quick action.
- **[isCreated()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm#apex_QuickAction_QuickActionResult_isCreated)**  
    Returns true if the action is created; otherwise, false.
- **[isSuccess()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_quickactionresult.htm#apex_QuickAction_QuickActionResult_isSuccess)**  
    Returns true if the action completes successfully; otherwise, false.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Database.Error](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_database_error.htm#apex_methods_system_database_error "Represents information about an error that occurred during a DML operation when using a Database method.")\>

### getIds()

The IDs of the QuickActions being processed.

#### Signature

public List<Id> getIds()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")\>

### getSuccessMessage()

Returns the success message associated with the quick action.

#### Signature

public String getSuccessMessage()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### isCreated()

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

#### Signature

public Boolean isCreated()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### isSuccess()

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

#### Signature

public Boolean isSuccess()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")