Skip to content

Instantly share code, notes, and snippets.

@oyekanmiayo
Last active September 12, 2022 06:57
Show Gist options
  • Save oyekanmiayo/b01dffc20cde71eb318aca0ea50a6e84 to your computer and use it in GitHub Desktop.
Save oyekanmiayo/b01dffc20cde71eb318aca0ea50a6e84 to your computer and use it in GitHub Desktop.
Cool things to do on Appscript
// Enter value in a cell
var valueRange = Sheets.newValueRange();
valueRange.values = [["text"]];
const result = Sheets.Spreadsheets.Values.update(valueRange,
SHEET_ID, A1_NOTATION, {valueInputOption: "RAW"});
// Fetches values as a multidimensional array
Sheets.Spreadsheets.Values.get(SHEET_ID, RANGE)
var valueRange = Sheets.newValueRange();
valueRange.values = [[event.id]];
const result = Sheets.Spreadsheets.Values.update(valueRange,
SHEET_ID, "J"+cellVal, {valueInputOption: "RAW"});
Logger.log('result:' + result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment