public sealed class ContextualTrigger : IMessage<ContextualTrigger>, IEquatable<ContextualTrigger>, IDeepCloneable<ContextualTrigger>, IBufferMessage, IMessage
Reference documentation and code samples for the Google.Apps.Script.Type class ContextualTrigger.
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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContextualTrigger\u003c/code\u003e class in the \u003ccode\u003eGoogle.Apps.Script.Type\u003c/code\u003e namespace defines a trigger that activates when an email meets specific criteria, typically to update the UI.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for message handling and object comparison.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContextualTrigger\u003c/code\u003e has two constructors, a default one and one that takes another \u003ccode\u003eContextualTrigger\u003c/code\u003e object for cloning.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eContextualTrigger\u003c/code\u003e include \u003ccode\u003eOnTriggerFunction\u003c/code\u003e, which specifies the endpoint to call, \u003ccode\u003eTriggerCase\u003c/code\u003e, which determines the type of trigger, and \u003ccode\u003eUnconditional\u003c/code\u003e, for triggers that fire with any opened email.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e2.3.0\u003c/code\u003e, with previous versions ranging from \u003ccode\u003e1.0.0\u003c/code\u003e to \u003ccode\u003e2.2.0\u003c/code\u003e also being documented.\u003c/p\u003e\n"]]],[],null,[]]