1 year ago

#376565

test-img

GenericPtr

Importing Google Calendar events from alias addresses

Usually when you create a new event an invitation email is sent and automatically inserted into the users calendar. In the case the invitation is sent to an alias address Google will not insert the event until the user responds in the Gmail calendar banner.

My problem is how to replicate this process outside of Gmail. I have tried both using "insert" and "import" after parsing the .ICS file but neither work as I expected.

  1. For "insert" the event is inserted but as a copy and the organizer of the event is changed to match the current account which it was added to. Even if the organizer was the same it is a copy, which means if the organizer were to move the event or rename it changes would not be reflected in both calendars.

  2. For "import" the event is inserted and the organizer is correct but the "privateCopy" flag is set and changing the response status for the attendee doesn't update in the organizers calendar. I guess this is by design since it the docs do say it's a copy.

So my question, how do I add the original/same event in both calendars? I'm confused because the iCalUID is the same whether I use insert or import but regardless the even is not "linked" across the different accounts. I thought the idea with the protocol was that the iCalUID is used for this very purpose but I must be missing something.

google-api

calendar

google-calendar-api

0 Answers

Your Answer

Accepted video resources