Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I use the EWS Managed API to create appointments in a public calendar (public folder).

If I use an Exchange Server account it is no problem to create an appointment in a public calendar. If I use an Office365 account to create such an appointment, it is created with the correct start date, end date, etc... BUT the Organizer field isn't published ... it remains "null".

Does anybody know what could cause such a behaviour? Could it have something to do with the permissions of the Office365 user? ... I didn't find a permission setting that seems responsible for this.

C#
ExchangeService service = new ExchangeService();
service.Credentials = new WebCredentials("username", "password");
service.UseDefaultCredentials = false;
service.AutodiscoverUrl("username@mail.com", ValidateRedirectionUrl);

Appointment newAppointment = new Appointment(service);
newAppointment.Start   = startDate;
newAppointment.End     = endDate;
newAppointment.Subject = "Subject";
newAppointment.Body    = "Body";

List<Appointment> appointments = new List<Appointment>();
appointments.Add(newAppointment);

service.CreateItems(appointments, folderId, MessageDisposition.SendAndSaveCopy, SendInvitationsMode.SendToNone);


What I have tried:

I tried to change different permission settings of the Office365 user but nothing changed the behaviour.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900