Relative Content

Tag Archive for google-apps-scriptgoogle-calendar-api

The Calendar API now distinguishes events created from Gmail

As of May 30, 2024, Google made a change to the Calendar API such that my Google Script no longer works. I use Google Script to change the color of my “standard” calendar events as well as those created automatically from Gmail messages. Unfortunately, now the former cannot be updated through the Google Calendar API as every time I attempt to make an update or patch using the Advanced Calendar API, I get an error. Here is my code:

List of all GCalendar recurrence dates with GScript

I try to create a simple list in GScript from all my recurrence dates in GCalendar. Currently, all appointments are displayed. However, I would only list the initial appointment with the appointment data: subject, appointment time, appointment end, interval.

GCalendar: Search for all series dates

How can I use GScript to search for all my series appointments and control the output so that only the appointment for which the series appointment has been set is displayed?

Script to automatically change availability on Google Calendar does not work

I was trying a google script to automatically change certain google calendar entries from “busy” to “free”. Online recommendations as well as ChatGPT suggested “e.setVisibility(CalendarApp.Visibility.FREE);”, but the debugger doesn’t accept the variable. It only accepts CONFIDENTIAL, DEFAULT, PRIVATE, and PUBLIC; not BUSY or FREE. Any suggestions?