Skip to content

Instantly share code, notes, and snippets.

teeohhem / gist:052b7a6491c1e592b7be062828fb0d1d
Last active May 3, 2023 03:40
PTO Calendar Sync with Google Apps Script
// This script creates a trigger that runs every 24 hours that will sync your team calendar from the vacation calendar
// with only events for your team members. This is a great way to have a simple team calendar to share with everyone
// and integrate with slack for more visibility into time off
// Instructions:
// 1. Clone this script
// 2. Create a new team calendar in google calendar, go to calendar settings, and copy the calendar ID
// 2. Change the value of TEAM_CALENDAR_ID to the ID from step 2
// 3. Update the line 19 variable, TEAM_MEMBERS. to be a list of your team members as they are entered in the vacation calendar
// 4. Click Save