I am creating a simple meeting scheduling application and I want to realize the opportunity for me to create appointments for my users.
I was able to create, update and delete my calendar on the Exchange Server, and I was able to create appointments by adding my colleagues as RequiredAttendees, for example:
//service variable is being created using my credidentals Appointment meeting = new Appointment(service); meeting.Subject = "Some subject "; meeting.Body = "Some body."; meeting.Start = DateTime.Now; meeting.End = meeting.Start.AddHours(4); meeting.Location = "Some Location"; meeting.RequiredAttendees.Add(" myCollegue@mail.com "); meeting.ReminderMinutesBeforeStart = 60; meeting.Save(new FolderId(WellKnownFolderName.Calendar, " myCollegue@mail.com "), SendInvitationsMode.SendToAllAndSaveCopy);
But he just sets it up on the right face. The next thing I tried to use impersonation, but I canβt access the hosting server to establish myself as a host, and others - to share the calendar with me (because of permissions, etc.), so I also had to clear it. He also appointed me as his publisher on his calendar. Is there something I can't see or can't find on MSDN sites?
EDIT: I can create an appointment on my calendar in outlok.
source share