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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eContextualTrigger\u003c/code\u003e class, which defines a trigger that activates when an email meets specific criteria, subsequently executing a designated endpoint to update the UI.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContextualTrigger\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Apps.Script.Type.Gmail\u003c/code\u003e namespace and is implemented in the Google.Apps.Script.Type.dll assembly, inheriting from the base \u003ccode\u003eObject\u003c/code\u003e class and implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating a \u003ccode\u003eContextualTrigger\u003c/code\u003e instance: one default constructor and another that accepts another \u003ccode\u003eContextualTrigger\u003c/code\u003e object as a parameter for initialization.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eOnTriggerFunction\u003c/code\u003e, specifying the endpoint name to be invoked, \u003ccode\u003eTriggerCase\u003c/code\u003e, indicating the type of trigger, and \u003ccode\u003eUnconditional\u003c/code\u003e, which sets a trigger that is activated whenever any email is opened.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version for \u003ccode\u003eContextualTrigger\u003c/code\u003e 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.\u003c/p\u003e\n"]]],[],null,[]]