It's a simple question but the answer seems to elude me.
I am trying to pass a parameter to a script in the following way: https://script.google.com/macros/s/AKfycbzygHQ2qQ.../exec?id=1234&value=Hello
The script is a simple one:
function doGet(e) {
Logger.log('in doGet function');
for (var i in e.parameter) {
Logger.log('parameter ' + i+1 + ' is ' + e.parameter[i]);
}
}
and getting the following in the execution transcript:
[13-10-01 10:21:20:722 ICT] Starting execution
[13-10-01 10:21:20:734 ICT] Logger.log([parameter is undefined, []]) [0 seconds]
[13-10-01 10:21:20:735 ICT] Execution succeeded [0.0 seconds total runtime]
What did I get wrong here?
Thanks!