I try to reproduce simple onEdit() example for Google Spreadsheets from that video:
https://www.youtube.com/watch?v=L1_nIhiVc5M&list=PLJnkyVAO-LM6VAUetaNIvwADp0XF-LlrE&index=85
I have a spreadsheet and script bound to it. I granted access to spreadsheet to the script. The script has the following code:
function onEdit(e) {
Logger.log("something was edited " + e.old_value);
}
When I edit something in spreadsheet function executes but e
is undefined. This is how result of execution looks in stackdriver:
I feel that I miss something simple but I lost too many time trying to guess. Please show me what I'm doing wrong.
old_value
in evente
.See tag info page for official documentation or see your video again. – TheMaster