(protected) new QuickAction()
A class for quick action
- Source:
Methods
defaultValues(contextIdopt, callbackopt) → {Promise.<Record>}
Retrieve default field values in the action (for given record, if specified)
Parameters:
Name |
Type |
Attributes |
Description |
contextId |
String
|
<optional>
|
ID of record to get default values specific to the record |
callback |
Callback.<Record>
|
<optional>
|
Callback function |
- Source:
Returns:
-
Type
-
Promise.<Record>
Describe the action's information (including layout, etc.)
Parameters:
- Source:
Returns:
-
Type
-
Promise.<QuickAction~QuickActionDescriveInfo>
Execute the action for given context Id and record information
Parameters:
- Source:
Returns:
-
Type
-
Promise.<QuickAction~QuickActionResult>
Type Definitions
QuickActionDescriveInfo
Type:
Properties:
Name |
Type |
Description |
contextSobjectType |
String
|
Object type used for the action |
targetSobjectType |
String
|
Object type of the action to target |
targetParentField |
String
|
Field name in the target object which refers parent(context) object record ID. |
targetRecordTypeId |
String
|
Record type of the targeted record |
layout |
Object
|
Layout sections that comprise an action |
- Source:
QuickActionInfo
Type:
Properties:
Name |
Type |
Description |
type |
String
|
Type of the action (e.g. Create, Update, Post, LogACall) |
name |
String
|
Name of the action |
label |
String
|
Label of the action |
urls |
Object
|
Endpoint URL information of the action |
- Source:
QuickActionResult
Type:
- Source: