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"]],[["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 page provides documentation for the \u003ccode\u003eContextualTrigger\u003c/code\u003e class within the \u003ccode\u003eGoogle.Apps.Script.Type\u003c/code\u003e namespace, specifically for version 2.1.0, which is related to Gmail.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContextualTrigger\u003c/code\u003e class defines a trigger that activates when an email meets specific criteria, executing a designated endpoint for actions like creating or updating cards in the UI.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple 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\u003eKey properties of the \u003ccode\u003eContextualTrigger\u003c/code\u003e class include \u003ccode\u003eOnTriggerFunction\u003c/code\u003e, which specifies the endpoint to call, \u003ccode\u003eTriggerCase\u003c/code\u003e, which defines different types of triggers, and \u003ccode\u003eUnconditional\u003c/code\u003e, which handles triggers that fire for any email.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of the \u003ccode\u003eContextualTrigger\u003c/code\u003e class from 1.0.0 to the most recent version of 2.3.0.\u003c/p\u003e\n"]]],[],null,[]]