Google.Apps.Script.Type - Class ContextualTrigger (2.3.0)

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.

Inheritance

object > ContextualTrigger

Namespace

Google.Apps.Script.Type.Gmail

Assembly

Google.Apps.Script.Type.dll

Constructors

ContextualTrigger()

public ContextualTrigger()

ContextualTrigger(ContextualTrigger)

public ContextualTrigger(ContextualTrigger other)
Parameter
NameDescription
otherContextualTrigger

Properties

OnTriggerFunction

public string OnTriggerFunction { get; set; }

Required. The name of the endpoint to call when a message matches the trigger.

Property Value
TypeDescription
string

TriggerCase

public ContextualTrigger.TriggerOneofCase TriggerCase { get; }
Property Value
TypeDescription
ContextualTriggerTriggerOneofCase

Unconditional

public UnconditionalTrigger Unconditional { get; set; }

UnconditionalTriggers are executed when any mail message is opened.

Property Value
TypeDescription
UnconditionalTrigger