How to pass parameter(s) to timed trigger function in library script
I have created a function which trigger every after 30 mins, and I want to pass some parameter. I have one library which returns carHistory, and my spreadsheet from where I call library function. Library1.gs function carHistory(number,maker) { // code logic } function startEvery30mins_CarHistory(number,maker) { //This function works carHistory(number,maker); // how to trigger this with parameter. ScriptApp.newTrigger("carHistory") .timeBased() .everyMinutes(30) .create(); } In my SpreadSheet Code.gs : function startOnce(){ Library1.carHistory("US-xxx","Honda"); } function startEvery30mins(){