How to Loop through Values in Google Sheet while creating a Trigger?
How to Loop through Values in Google Sheet while creating a Trigger? I have Google Apps Script Code in the following format: var key = "ID of the Sheet"; var key1 = "ID of the Sheet"; function createTriggers() { ScriptApp.newTrigger('filter') .forSpreadsheet(key) .onEdit() .create(); } function createTriggers() { ScriptApp.newTrigger('filter') .forSpreadsheet(key1) .onEdit() .create(); } How to loop through all keys (key, key1, key2...) and create triggers via a single function? Pretty broad question. Can you be more specific? What are you trying to accomplish? – Cooper 3 mins ago I want to create a trigger for multiple sheets in a standalone script, as of now, I have to create a separate function for each trigger as seen in the above exa...