How to fetch the ID of a Google Spread Sheet via Google Apps Script?

后端 未结 3 1212
南方客
南方客 2020-12-29 13:38

I\'ve created one Google spread sheet and I want to find the ID of that spread sheet. I\'ve tried too much to search on Google but could not succeed.

Please show me

3条回答
  •  旧时难觅i
    2020-12-29 13:48

    the sheet is is present in between the the
    d and edit of the spreadsheet url.
    example -: if the sheet url is

    https://docs.google.com/spreadsheets/d/1rV2_S2q5rcakOuHs2E1iLeKR2floRIozSytAt2iRXo8/edit#gid=0

    the sheet id is

    1rV2_S2q5rcakOuHs2E1iLeKR2floRIozSytAt2iRXo8

    for more information go to google sheets api official documentation

提交回复
热议问题