Delete appointment restriction using EWS.

We are creating appointment in Outlook 2013 using EWS API. We want to create appointment which will not be delete by user. Only service can delete these appointment. how we can enable this feature for appointment.(*Appointment should not be delete by user*)

Currently, We are using Lotus notes and We can make appointment read only in notes for users.But API can delete these appointment.

Code:-

ExchangeService exchangeService = objExchangeservice_Conn.fnExchangeService_Conn();
            //Create an appointment
            try
            {
                  Appointment appointment = new Appointment(exchangeService);

                //object to create an appointment.
                appointment.Subject = "Test Meeting  ";
                appointment.Body = "This is test for a appointment";
                appointment.Start = DateTime.Now.AddDays(1);
                appointment.End = appointment.Start.AddHours(1);
                appointment.Location = "test";

                appointment.ReminderDueBy = DateTime.Now;
                appointment.RequiredAttendees.Add("");
 appointment.Save(SendInvitationsMode.SendToNone);
Item item = Item.Bind(exchangeService, appointment.Id, new PropertySet(ItemSchema.Subject));



  • Edited by John_Y007 Thursday, June 18, 2015 1:14 PM
June 18th, 2015 1:09pm

You can't create read only appointments in Exchange (with any API) the owner of a Mailbox will always have full control to delete any object that you create in a Mailbox folder.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2015 12:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics