How to get only the values from the submission that triggered onFormSubmit event in google appscript?
That is, when a google form response is submitted, is there a way to get only the row of values that corresponds to the form response that actually triggered the onFormSubmit in the first place (in a google sheet)?
So far, the only thing I could find was
let values = SpreadsheetApp.getActive().getSheets()[0].getDataRange().getValues();
which return all the sheet rows that then must be filtered somehow.
It seems odd that google sheets can detect an onFormSubmit event, but would have no method for actually getting the data from the submission that triggered the event.
getLastRow
? Ref – Tanaike