Google Apps Script Get Spreadsheet Id

July 27, 2019
val spreadsheetId = SpreadsheetApp.getActiveSpreadsheet().getId()

Same as spreadsheet id as shown in url: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit#gid=0.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.