I have a script associated with a google sheet that it's call after a Google form is submitted.
Actually I can get all rows or the last but in case one form answer is updated I need to find this row updated to make my treatment.
Is there a way to do that?
This is my two case:
// Getting last row data
function getSpreadSheetLastRowData() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var row = sheet.getLastRow();
return sheet.getRange('A'+row+':BG'+row).getValues();
}
// Getting all rows data
function getSpreadSheetAllData() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var row = sheet.getLastRow();
return sheet.getRange('A2:BG'+row).getValues();
}