What is the correct syntax for Google Sheets API v4 method spreadsheets.values.append for Google Apps Script?
Tried the following code but it is giving an error: Invalid JSON payload received.
function appendRow() {
Sheets.Spreadsheets.Values.append("SpreadsheetID", "Sheet1!A:A", "USER_ENTERED", { "values": [[new Date()]] } );
}
Thank you.
Requested entity was not found.
Although all the information for range and sheetId is correct. – AppendantInvalid number of arguments provided. Expected 3-4 only
. And also the link you provided also says that ValueInputOption [that has the option "USER_ENTERED"] is required. Really strange why Google does not provide full documentation on Google Sheets API v4. – Appendant