Class Trigger

Trigger

A trigger that runs CEL expression validation widget event actions according to the action rule ID.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

// Define Triggers for each Condition respectively
consttrigger_success=CardService.newTrigger()
.setActionRuleId("CEL_TEXTINPUT_SUCCESS_RULE_ID");
consttrigger_failure=CardService.newTrigger()
.setActionRuleId("CEL_TEXTINPUT_FAILURE_RULE_ID");
consteventAction=CardService.newEventAction()
.setActionRuleId("CEL_TEXTINPUT_EVALUATION_RULE_ID")
.setExpressionDataAction(expressionDataAction)
.addPostEventTrigger(trigger_success)
.addPostEventTrigger(trigger_failure);

Methods

MethodReturn typeBrief description
setActionRuleId(actionRuleId) Trigger Sets the action rule id for the trigger.

Detailed documentation

setActionRuleId(actionRuleId)

Sets the action rule id for the trigger.

Parameters

NameTypeDescription
actionRuleIdStringThe uuid that uniquely identifies an action.

Return

Trigger — This object, for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月03日 UTC.