I created a script that updates entries on a Google Calendar based on a list of dates on Google Sheets.
The script runs well if I run it from the editor or if I trigger the function via a Menu entry.
When I try to trigger it via custom function in sheets, it's returning an error: "You do not have permission to call getCalendarById "
Both the sheet and the calendar are under the same Google Account.
Is there a limitation with regards to triggering calendar calls from inside google sheets?