Enum TriggerSource
TriggerSource
An enumeration denoting the source of the event that causes the trigger to fire.
To call an enum, you call its parent class, name, and property. For example,
ScriptApp.TriggerSource.SPREADSHEETS
.
Properties
Property | Type | Description |
SPREADSHEETS | Enum | Google Sheets causes the trigger to fire. |
CLOCK | Enum | A time-driven event causes the trigger to fire. |
FORMS | Enum | Google Forms causes the trigger to fire. |
DOCUMENTS | Enum | Google Docs causes the trigger to fire. |
CALENDAR | Enum | Google Calendar causes the trigger to fire. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-01 UTC.
[null,null,["Last updated 2023-11-01 UTC."],[[["`TriggerSource` is an enum used to identify the event source that activates a trigger."],["Calling an enum involves referencing its parent class, name, and specific property, for example, `ScriptApp.TriggerSource.SPREADSHEETS`."],["The properties of `TriggerSource` include `SPREADSHEETS`, `CLOCK`, `FORMS`, `DOCUMENTS`, and `CALENDAR`, indicating different event sources like Google Sheets, time-driven events, Google Forms, Google Docs, and Google Calendar, respectively."]]],[]]