I use google script to capture event when user insert rows (in google sheet) and fetch the list of row number that's newly created.
I tried onChange :
function onInsertRow(e){
if (e.changeType == "INSERT_ROW") {
SpreadsheetApp.getUi().alert("insert");
}
}
Trigger works but the event object of onChange() doesn't have range property. So how can i get the list of row numbers that has been inserted ?