Not allow to access from one to other Google Spreadsheet

前端 未结 2 419
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 05:25

I trying to set new value to my Google Spreadsheet from onEdit event in other spreadsheet. I get Exception: Action not allowed. I can\'t understand what exactly I doing not righ

相关标签:
2条回答
  • 2021-01-25 06:10

    You can fix your code: 1) dont call msgBox or any modals from the trigger. Breaks many things. 2) you cant access other docs from simple triggers, plus it runs as the user so you might not have permissions for other things. Instead install the trigger yourself with a different name (not onEdit) and set it to trigger when document is edited.

    0 讨论(0)
  • 2021-01-25 06:25

    Check the documentation Understanding Triggers, specifically, restrictions on Simple Triggers:

     ...
    
    • They can only modify the containing document. Access to other documents is forbidden.
    0 讨论(0)
提交回复
热议问题