How to send a calendar event to a specific attendee's calendar

I am working with the Calendar API (Java). My specific requirement is I want to add a participant to the event and at the same time I want to specify the calendar of the participants.

Let's say I have 2 users. User-A and User-B

User-A creates a calendar event and adds User-B as a member. User's calendar is Cal-A's calendar and User-B's calendar is Cal-B.

Now when User-A adds User-B as an attendee, the event is created in User-B's calendar, but created in his static calendar. Is there a way how I can tell (using the java api) that the invitation / event generated by User-B should go into User-B Calendar-B?

Note: In applicaiton, I have access to the User-A calendar and User-B calendar.

Thanks in advance.

+2


source to share


2 answers


I believe the short answer is not ...

Google Calendar, regardless of the API or language you use, is based on the iCalendar standard, which to my knowledge has no concept of "Invite an attendee and send an invitation to an event on this particular calendar that attendee." If I'm wrong, the quickest way to get an answer and prove I'm wrong is to find evidence of such a feature in the iCalendar documentation.

I thought I had a workaround: "Hey, if you have access to Person-B's frame, why not just create an event on your calendar and add Person-A as a participant?" I did this by splitting one of my podkalendars of one of my Google Calendar accounts into another. But of course you have the same problem in reverse. Now Person-B has the event in the right place, but Person-A has it on the default calendar.



So, depending on what your "main" account is, you might want to go this route, but I guess you find it just as attractive as what you are dealing with.

The only other workaround I found (which wasn't all that good) is you can access Person-B's calendar and copy the invitation to another calendar (the one you want) and then remove it from the main calendar. This will work (I've tried), but obviously it's not as graceful as what you meant. If you need specifics on how to copy / delete, or how to access a specific non-default calendar, let me know and I'll post some examples.

+3


source


This is possible (even if the solution is not pleasant). If the person knows the ID of your other calendar (which is a valid email address), they can send an invitation to the email address. The ID can be found in the calendar settings and has a form ...@group.calendar.google.com

.



See my other answer on a similar question for a list of the disadvantages of this solution.

0


source







All Articles