我正在嘗試集成 Google 作業表和日歷。我已經撰寫了將事件添加到 Google 日歷的函式,但是當我嘗試cell使用custom function它呼叫該函式時顯示此錯誤
Exception: The script does not have permission to perform that action. Required permissions: (https://www.googleapis.com/auth/calendar || https://www.googleapis.com/auth/calendar.readonly || https://www.google.com/calendar/feeds)
我在 Manifest 檔案中給予了上述許可。這是我的清單:
`
"https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/calendar.readonly",
"https://www.google.com/calendar/feeds",
"https://www.googleapis.com/auth/spreadsheets.currentonly",
"https://www.googleapis.com/auth/spreadsheets"
],`
問題出現在這條線上 let cal=CalendarApp.getCalendarById("ID");
如何解決這個問題,請幫助!
uj5u.com熱心網友回復:
自定義功能功能不包括日歷
自定義功能可用的功能不包括日歷。即使您將范圍添加到清單中,如果它不在鏈接串列中也沒有區別,那么它對單元格或自定義函式不可用。將其撰寫為標準腳本并從選單中呼叫它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/446561.html
