1
votes

Recently migrated from v2 to v3. Previously (with v2), when events were synced to Google, an event was simply added to a non-personal calendar. The synced event also included the attendees' email address. With the newer version (v3), we've noticed Google creates a duplicate event on the attendees’ personal calendars using the same process as before. This creates a completely different event with its own eventId, unrelated to the one we created via the API.

We came across this article while doing some research: http://bittwiddlers.org/index.php/2012/10/google-calendar-api-v3-undocumentation/#awp::index.php/2012/10/google-calendar-api-v3-undocumentation/. Here's a snippet:

Adding email addresses as attendees copies the event to the attendees’ personal calendars. This creates a completely different event with its own eventId, unrelated to the one you created via the API. As far as I can tell, there is no programmatic way to determine if this duplicated event originated from the event you created via the API.

Does anyone have any ideas as to why this behaviour is occurring? And how it can be prevented. Spent some time digging through the list of questions on calendar API, but didn't find anything useful. If there are similar threads, please feel free to point 'em out. Thanks.

1

1 Answers

0
votes

If you do not want the attendees to receive the invitation, you should use Events.import() operation instead of Events.insert() operation (https://developers.google.com/google-apps/calendar/v3/reference/events/import). Make sure to fill in the iCalUID.