Created
June 20, 2019 19:17
-
-
Save supernovaplus/10a65435868839c5a9e13f6b4a3c2038 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LogAllTriggers() { | |
var allTriggers = ScriptApp.getProjectTriggers(); | |
if(allTriggers.length<1)return Logger.log("list is empty"); | |
Logger.log("Trigers Count: "+allTriggers.length); | |
for (var i = 0; i < allTriggers.length; i++) { | |
Logger.log(i+1+"->"+allTriggers[i].getHandlerFunction()+"=>"+allTriggers[i].getTriggerSource()+"=>"+allTriggers[i].getUniqueId()+"=>"+JSON.stringify(allTriggers[i].getEventType())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment