0
votes

I am using service account to authenticate google calendar. There is one admin (organizer) for my application and multiple users (creators) who creates event on behalf of admin and invitation email goes to attendees as well as organizer about event creation. But the issue is, there is intimation to creator about the response status of the attendee.

organizer([email protected]) receives the response status email of (acceptance or declined) of an attendee but creator([email protected]) doesn't not receive my email.

/*adding organizer data */
Event.OrganizerData org = new Event.OrganizerData();
org.Email = gm.Organizer; //[email protected]
eventEntry.Organizer = org;
    /*adding creator data */
Event.CreatorData creator = new Event.CreatorData();
creator.Email = gm.CreatedBy; //[email protected]
eventEntry.Creator = creator;
/*inserting an event to service account calendar*/
  var request = er.Insert(eventEntry, calID);
                    request.SendNotifications = true;
                    var re = request.Execute();

how do I achieve this requirement. I did lot of researching on internet but did not find any answer.

1
Make sure that in your calendar settings, remindOnRespondedEventsOnly is set to true. You may check this related SO question. From this documentation, you can use the sendNotifications parameter to send notifications about the event update (e.g. attendee's responses, title changes, etc.). The default is False. - abielita
sorry, i guess you have not understood my question properly. i dont want to modifying response status that is done by attendee. what i want is organizer ([email protected]) getting email notification of attendee response status but the creator ([email protected]) is not getting the email notification of attendee response status. - Swati Annaldas

1 Answers

0
votes

I know it's late though.

SendNotifications is deprecated now. Use SendUpdates method. See the official doc here