Class ContextualTrigger (1.1.0)

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.

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
ContextualTrigger.TriggerOneofCase

Unconditional

public UnconditionalTrigger Unconditional { get; set; }

UnconditionalTriggers are executed when any mail message is opened.

Property Value
TypeDescription
UnconditionalTrigger