1

I'm creating apps script triggers that send automated scheduled emails from a google sheets document (document A). I have another document Z where I would like to validate if the trigger was created in the document A apps script environment. Is there a formula or script which helps me with this? I know the name of the apps script project, that contains the trigger.

I have around 200 documents where triggers are created and need a central document to validate if everything went well.

Thanks for your help!

1 Answer 1

2

Unfortunately there is no direct way to do it

There is the method ScriptApp.getProjectTriggers(); but it only allows you to retrieve the triggers of a certain project, not all triggers on your drive.

But you can implement a workaround.

E.g., when you create a trigger (I assume you do it programmatically wiht a triggerBuilder, retrieve the trigger Id and paste it into a speradsheet. If you do it for all triggers you create, you will have a spreadsheet that lists all triggers you created.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.