You do not have permission to call openById

前端 未结 4 1622
抹茶落季
抹茶落季 2020-11-30 08:48

Problem: When I run the script, Google tells me,

You do not have permission to call openById

I had copied a script from anothe

4条回答
  •  孤城傲影
    2020-11-30 09:24

    I found this official note which I believe clears up what caused the issue.

    If your function is a custom function, that is one which can be used like a regular spreadsheet function in the sheet itself, then it has limited access to things and cannot open other spreadsheets.

    The same script can however open other spreadsheets from a menu button or similar.

    Link: Documentation at developers.google.com

提交回复
热议问题