Last active
September 12, 2022 06:57
-
-
Save oyekanmiayo/b01dffc20cde71eb318aca0ea50a6e84 to your computer and use it in GitHub Desktop.
Cool things to do on Appscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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