Failing with simple CalendarApp script

Viewed 37

Complete rookie here. Trying to implement a script that reads dates from Sheet and create events in Calendar. Starting from the very basics, but failing even to get the below going. When running the script not errors are given but the event is not written in Calendar.

Code below. Any thoughts?

function niccal() { var event = CalendarApp.getCalendarById("5jl5pm0c2k4i9iuhu5m9dkr37c@group.calendar.google.com").createAllDayEvent('Apollo', new Date('July 20, 2022')); }

0 Answers
Related