Skip to content

Google script for syncing personal and work emails.

Notifications You must be signed in to change notification settings

jirulak02/calendar-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

calendar-sync - 2024

This is a script to sync your personal Google Calendar with your work Google Calendar. It creates out of office events in your work calender, so your co-workers know when you are not available without providing any other details about your personal events.

Setup

  1. Go to your personal calendar settings and share your calendar with your work email.
  • Click the three dots next to your calendar and select Settings and sharing.
  • Under Share with specific people, click Add people.
  • Enter your work email address and select See all event details.
  1. Create a new Google Apps Script in your work Google Drive.
  2. Copy the content of Code.gs into the script editor.
  3. Change the personalCalendarId to your personal calendar id (for main account calendar, it will be your email address), which you can find in the same settings page where you shared your calendar.
  4. Customize the eventInfo object if you'd like.
  5. Add the Google Calendar API in the Services menu.
  6. Create a new trigger for the function syncCalendar to run whenever your personal calendar updates.

Jiří Šimeček