Create Appoinment

How can i create an appointment from a mapi calendar??

@alibardisk,

You can convert MapiCalendar to ICS file format as shown in the following sample code.

MapiCalendar cal = new MapiCalendar("Home", "Summary", "Description", DateTime.Now.AddDays(1), DateTime.Now.AddDays(2));

cal.Save("174224\\output.ics", AppointmentSaveFormat.Ics);

But sir i want to convert a mapi calender into a appoinment which is extracted from a pst file and save the appoinment into the exchange server using EWSCLIENT. How can i ?

@alibardisk,

The process is the same and involves the following steps:

  1. Extract Calendar item from PST as MaipCalendar and save it as ICS - check Extract Calendar Items as ICS

  2. Create appointment using EWS API’s CreateAppointment method - visit Working with Calendar Items

Please visit these articles for your kind reference which contain detailed examples for meeting your requirements and let us know your feedback if you have any query in this regard.