Class EventAction Stay organized with collections Save and categorize content based on your preferences.
An EventAction to run when aCELexpression validation condition is met.
Only available through theGemini Alphaprogram for Google Workspace add-ons that extend Google Workspace Flows.
consteventAction=CardService.newEventAction().setActionRuleId("CEL_TEXTBOX_EVALUATION_RULE_ID").setExpressionDataAction(expressionDataAction).addPostEventTrigger(trigger_success).addPostEventTrigger(trigger_failure);
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Event | Adds aCELexpression validation condition to evaluate after the event action runs. |
set | Event | Sets a unique identifier for the event action. |
set | Event | Set the common widget action for widgets. |
set | Event | Sets theCELexpression validation data action for widgets. |
Detailed documentation
addPostEventTrigger(trigger)
Adds aCELexpression validation condition to evaluate after the event action runs.
Parameters
| Name | Type | Description |
|---|---|---|
trigger | Trigger | The CEL expression validation trigger to add. |
Return
Event — The EventAction, for chaining.
setActionRuleId(actionRuleId)
Sets a unique identifier for the event action.
Parameters
| Name | Type | Description |
|---|---|---|
action | String | The unique identifier for the action rule. |
Return
Event — The EventAction, for chaining.
setCommonWidgetAction(commonWidgetAction)
Set the common widget action for widgets.
Parameters
| Name | Type | Description |
|---|---|---|
common | Common | The common widget action. |
Return
Event — The EventAction, for chaining.
setExpressionDataAction(expressionDataAction)
Sets theCELexpression validation data action for widgets.
Parameters
| Name | Type | Description |
|---|---|---|
expression | Expression | The expression data action. |
Return
Event — The EventAction, for chaining.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.