---
title: "Create an Out Of Office event in Google Calendar with Google Apps Script"
author: "Martin Hawksey"
date: 2022-07-26T21:24:31+00:00
modified: 2022-07-26T21:25:00+00:00
canonical_url: https://pulse.appsscript.info/p/2022/07/create-an-out-of-office-event-in-calendar-with-google-apps-script/
markdown_url: https://pulse.appsscript.info/p/2022/07/create-an-out-of-office-event-in-calendar-with-google-apps-script.md
categories:
  - "Calendar"
  - "Intermediate"
  - "Solutions"
tags:
  - "Dararath BEAUVOIR"
  - "linkedin.com"
featured_image: https://pulse.appsscript.info/files/2022/07/roman-bozhko-PypjzKTUqLo-unsplash-1.jpg
description: "This post from Dararath BEAUVOIR is a great reminder that in Google Workspace/Apps Script development that you occasionally need to look beyond the built-in services like CalendarApp to the Advance Service equivalents. In this case Calendar.CalendarList.list is used because unlike CalendarApp using the Advanced Service the event response indicated if the eventType is out-of-office. More details are included in the source post."
---

# Create an Out Of Office event in Google Calendar with Google Apps Script

![Create an Out Of Office event in Google Calendar with Google Apps Script](https://pulse.appsscript.info/files/2022/07/roman-bozhko-PypjzKTUqLo-unsplash-1.jpg)

> Photo by [Roman Bozhko](https://unsplash.com/es/@romanbozhko?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/out-of-office-calendar?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
> 🏝 It’s finally summer break! We all wish we could create Out Of Office events in Calendar using Google Workspace #AppsScript (I know you do). But Calendar API is yet not allowing us to do so.

This post from [Dararath BEAUVOIR**](https://www.linkedin.com/in/dararath-beauvoir?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAACmazqkBASyyjA4UkUp-DBFmBjyFF8DFbp8&lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BUc98mOulR9SHhx8AO3%2FpSw%3D%3D) is a great reminder that in Google Workspace/Apps Script development that you occasionally need to look beyond the built-in services like `CalendarApp` to the [Advance Service equivalents**](https://developers.google.com/apps-script/guides/services/advanced). In this case `Calendar.CalendarList.list` is used because unlike `CalendarApp` using the Advanced Service the event response indicated if the `eventType` is out-of-office. More details are included in the source post.

Source: *[Create an Out Of Office event in Calendar with Google Apps Script*](https://www.linkedin.com/pulse/create-out-office-event-calendar-google-apps-script-palooma)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2022/07/create-an-out-of-office-event-in-calendar-with-google-apps-script/](https://pulse.appsscript.info/p/2022/07/create-an-out-of-office-event-in-calendar-with-google-apps-script/)*
