3

I'm not able to find this in the documentation, but is it possible to programmatically create time based trigger for another spreadsheet?

1
  • Dealing with the exact same thing. Did you find a solution for this? Commented Dec 24, 2015 at 15:12

1 Answer 1

1

Yes it is:

https://developers.google.com/apps-script/managing_triggers_programmatically

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

5 Comments

Sorry I didn't make my question clear, I mean create a timebased trigger for another spreadsheet. I want something like the event trigger, you can use this .forSpreadsheet(spreadsheet), is it possible?
As a time-based trigger is triggered by, well, time, as opposed to a spreadsheet event, I'm not sure it would make sense to have a forSpreadsheet() method. Of course, the function to which you are applying the time-based trigger can operate on a specific spreadsheet... is this what you mean?
Yes. I created a template spreadsheet which has the custom function and a time-based trigger calling this custom function. But when I make a copy of this template, I lost the trigger, so I'm trying to create the trigger again and attach it to the new spreadsheet.
Have you found a solution?
Dealing with the exact same thing. @louis did you find a solution for this?

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.