An EventAction to run when a CEL expression validation condition is met.
Only available through the Gemini Alpha program for Google Workspace add-ons that extend Google Workspace Flows.
const eventAction = CardService . newEventAction (). setActionRuleId ( "CEL_TEXTBOX_EVALUATION_RULE_ID" ) . setExpressionDataAction ( expressionDataAction ) . addPostEventTrigger ( trigger_success ) . addPostEventTrigger ( trigger_failure );
Methods
| Method | Return type | Brief description |
|---|---|---|
Event
|
Adds a CEL expression validation condition to evaluate after the event action runs. | |
Event
|
Sets a unique identifier for the event action. | |
Event
|
Set the common widget action for widgets. | |
Event
|
Sets the CEL expression validation data action for widgets. |
Detailed documentation
add
Post
Event
Trigger(trigger)
Adds a CEL expression 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.
set
Action
Rule
Id(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.
set
Common
Widget
Action(commonWidgetAction)
Set the common widget action for widgets.
Parameters
| Name | Type | Description |
|---|---|---|
common
|
Common
|
The common widget action. |
Return
Event
— The EventAction, for chaining.
set
Expression
Data
Action(expressionDataAction)
Sets the CEL expression validation data action for widgets.
Parameters
| Name | Type | Description |
|---|---|---|
expression
|
Expression
|
The expression data action. |
Return
Event
— The EventAction, for chaining.

