EWS Managed API - appointment organizer remains null, if created with Office365 account RRS feed

  • Question

  • 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.

    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>();
    service.CreateItems(appointments, folderId, MessageDisposition.SendAndSaveCopy, SendInvitationsMode.SendToNone);

    Thursday, May 18, 2017 9:24 AM