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.
Implements
IMessageContextualTrigger, IEquatableContextualTrigger, IDeepCloneableContextualTrigger, IBufferMessage, IMessageNamespace
GoogleGoogle.AppsGoogle.Apps.ScriptTypeGmailAssembly
Google.Apps.Script.Type.dll
Constructors
ContextualTrigger()
public ContextualTrigger()
ContextualTrigger(ContextualTrigger)
public ContextualTrigger(ContextualTrigger other)
Parameter | |
---|---|
Name | Description |
other | ContextualTrigger |
Properties
OnTriggerFunction
public string OnTriggerFunction { get; set; }
Required. The name of the endpoint to call when a message matches the trigger.
Property Value | |
---|---|
Type | Description |
string |
TriggerCase
public ContextualTrigger.TriggerOneofCase TriggerCase { get; }
Property Value | |
---|---|
Type | Description |
ContextualTriggerTriggerOneofCase |
Unconditional
public UnconditionalTrigger Unconditional { get; set; }
UnconditionalTriggers are executed when any mail message is opened.
Property Value | |
---|---|
Type | Description |
UnconditionalTrigger |