Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
QuickActionRequest Class
Namespace
Usage
For Apex saved using Salesforce API version 28.0, a parent ID is associated with the QuickActionRequest instead of the context ID.
Example
In this sample, a new quick action is created to create a contact and assign a record to it.
QuickActionRequest Methods
The following are methods for QuickActionRequest. All are instance methods.
getContextId()
Signature
public Id getContextId()
Return Value
Type: ID
getQuickActionName()
Signature
public String getQuickActionName()
Return Value
Type: String
getRecord()
Signature
public SObject getRecord()
Return Value
Type: sObject
setContextId(contextId)
Signature
public Void setContextId(Id contextId)
Parameters
-
contextId:
Type: ID
Return Value
Type: Void
Usage
For Apex saved using Salesforce API version 28.0, sets this QuickAction’s parent ID and is returned by getParentId.
setQuickActionName(name)
Signature
public Void setQuickActionName(String name)
Parameters
-
name:
Type: String
Return Value
Type: Void
setRecord(record)
Signature
public Void setRecord(SObject record)
Parameters
-
record:
Type: sObject
Return Value
Type: Void