public sealed class ContextualTrigger : IMessage<ContextualTrigger>, IEquatable<ContextualTrigger>, IDeepCloneable<ContextualTrigger>, IBufferMessage, IMessage
Defines a trigger that fires when the open email meets a specific criteria.
When the trigger fires, it executes a specific endpoint, usually
in order to create new cards and update the UI.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `ContextualTrigger` class, which defines a trigger that activates when an email meets specific criteria, subsequently executing a designated endpoint to update the UI."],["The `ContextualTrigger` class is part of the `Google.Apps.Script.Type.Gmail` namespace and is implemented in the Google.Apps.Script.Type.dll assembly, inheriting from the base `Object` class and implementing several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["There are two constructors available for creating a `ContextualTrigger` instance: one default constructor and another that accepts another `ContextualTrigger` object as a parameter for initialization."],["The class has properties like `OnTriggerFunction`, specifying the endpoint name to be invoked, `TriggerCase`, indicating the type of trigger, and `Unconditional`, which sets a trigger that is activated whenever any email is opened."],["The current latest version for `ContextualTrigger` is 2.3.0, while the current version in the page is version 2.0.0, with previous versions going as far back as version 1.0.0."]]],[]]