davepar / gcalendarsync

Apps Script for syncing a Google Spreadsheet with Google Calendar
MIT License
161 stars 46 forks source link

Recurring events sync *sometimes* #28

Open swinggraphics opened 7 years ago

swinggraphics commented 7 years ago

I found that when I create a recurring event in the calendar, the recurrences will be added to the spreadsheet unless/until an event is edited or created. After that, syncing only returns the first EDIT: last event in the series. I noticed that the REST API has a "list" method for events with a "singleEvents" option. I didn't see anything like this in the JS API, but I'm also completely new to this. I only need recurring events to sync one way—from the calendar to the sheet. Any suggestions on where to look in the docs or how to go about it? If I figure it out, I'll happily create a pull request.

swinggraphics commented 7 years ago

I realized I'm wrong about what the issue actually is. The first time syncing from calendar to spreadsheet, all recurring events are added. The next time we sync, all but one of the iterations are deleted. I do want all iterations copied to my spreadsheet and want them to stay there.

Or at least the behavior should be consistent and never include recurring iterations?