Introduction:
In my previous article I have explained about Reading querystringvalue using javascript. In this article I am going to explain about how execute a google app script function periodically
Explanation:
To execute a function periodically first we have to configure
a trigger to that function . Then that trigger will run the function as
mentioned. Below is the sample code
function configure() {
ScriptApp.newTrigger("your_fn_name").timeBased().everyMinutes(1).create();
}
function your_fn_name()
{
//Your code here
}
The above script runs the your_fn_name function by every one
minute.
Comments
Post a Comment