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

Usage

Note

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

The following are methods for QuickActionDefaults.

getActionName()

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

Signature

public String getActionName()

Return Value

Type: String

getActionType()

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

Signature

public String getActionType()

Return Value

Type: String

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

getTargetSObject()

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

Signature

public SObject getTargetSObject()

Return Value

Type: SObject