---
schema_version: "1"
id: da1e865e06319b8347be6e1317603fe96900b220e1729310eae66534fe87df7a
title: QuickActionDefaults Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_QuickAction_QuickActionDefaults.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 83f642fecde4941ef80baaaa22cb7d6ca0720496d274308edc0b7a917c4104c6
description: Represents an abstract Apex class that provides the context for running the standard Email Action on Case Feed and the container of the Email Message fields for the action payload. You can override the target fields before the standard Email Action is rendered. Returns the name of the standard Email Action on Case Feed (Case.Email). Returns the type of the standard Email Action on Case Feed (Email).The ID of the context related to the standard Email Action on Case Feed (Case ID).The target object of the standard Email Action on Case Feed (EmailMessage).
---
# QuickActionDefaults Class

Represents an abstract Apex class that provides the context for running the standard Email Action on Case Feed and the container of the Email Message fields for the action payload. You can override the target fields before the standard Email Action is rendered.

## 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.")

## Usage

![Note](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note.png)

#### Note

You cannot extend this abstract class. You can use the getter methods when using it in the context of QuickAction.QuickActionDefaultsHandler. Salesforce provides a class that extends this class (See QuickAction.SendEmailQuickActionDefaults.)

- **[QuickActionDefaults Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm#apex_QuickAction_QuickActionDefaults_methods)**

## QuickActionDefaults Methods

The following are methods for QuickActionDefaults.

- **[getActionName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm#apex_QuickAction_QuickActionDefaults_getActionName)**  
    Returns the name of the standard Email Action on Case Feed (Case.Email).
- **[getActionType()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm#apex_QuickAction_QuickActionDefaults_getActionType)**  
    Returns the type of the standard Email Action on Case Feed (Email).
- **[getContextId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm#apex_QuickAction_QuickActionDefaults_getContextId)**  
    The ID of the context related to the standard Email Action on Case Feed (Case ID).
- **[getTargetSObject()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_QuickActionDefaults.htm#apex_QuickAction_QuickActionDefaults_getTargetSObject)**  
    The target object of the standard Email Action on Case Feed (EmailMessage).

### getActionName()

Returns the name of the standard Email Action on Case Feed (Case.Email).

#### Signature

public String getActionName()

#### 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.")

### getActionType()

Returns the type of the standard Email Action on Case Feed (Email).

#### Signature

public String getActionType()

#### 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.")

### getContextId()

The ID of the context related to the standard Email Action on Case Feed (Case ID).

#### Signature

public Id getContextId()

#### Return Value

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.")

### getTargetSObject()

The target object of the standard Email Action on Case Feed (EmailMessage).

#### Signature

public SObject getTargetSObject()

#### Return Value

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