locked
Get Calendar items ,meeting rooms, appointments from exchange server 2010 Using C# and EWS webservices. RRS feed

  • Question

  • Need your support to retrieve calendar data,meeting rooms, appointments from exchange server 2010.

    Here iam using c# to call webservices. can any one share the c# application to call xml webservices to connect exchange server 2010

    Tuesday, September 4, 2018 3:24 AM

All replies

  • I'd suggest you start with this article https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-get-appointments-and-meetings-by-using-ews-in-exchange which has a C# sample of using the Ews Managed API which is easiest way of doing what your trying 

    Cheers
    Glen

     
    Tuesday, September 4, 2018 11:15 PM
  • For example, use the code below to create an appointment

    Appointment appointment = new Appointment(service); // Set the properties on the appointment object to create the appointment. appointment.Subject = "Tennis lesson"; appointment.Body = "Focus on backhand this week."; appointment.Start = DateTime.Now.AddDays(2); appointment.End = appointment.Start.AddHours(1); appointment.Location = "Tennis club"; appointment.ReminderDueBy = DateTime.Now; // Save the appointment to your calendar. appointment.Save(SendInvitationsMode.SendToNone); // Verify that the appointment was created by using the appointment's item ID. Item item = Item.Bind(service, appointment.Id, new PropertySet(ItemSchema.Subject)); Console.WriteLine("\nAppointment created: " + item.Subject + "\n");

    For more detailed information, please read the article linked below.

     https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-get-appointments-and-meetings-by-using-ews-in-exchange

     



    Friday, September 7, 2018 1:34 AM