none
Reg : Microsoft Exchange Server - Cancellation of Appointments in Past Date RRS feed

  • Question

  • Hello,

    We need to synchronise appointments from Exchange Web Server.

    We are using the below code for retrieving the appointments from exchange server

    Dim folderID As New FolderId(WellKnownFolderName.Calendar, roomaddress)
    'Dim folderName As New FolderId(WellKnownFolderName.Calendar, Roomaddress.Name)
    Dim returnValue As FindItemsResults(Of Appointment)
    ===================================================
    ' Retrieve Calendar Appointments against individual room
    returnValue = service.FindAppointments(folderID, ObjcalendarView)
    If Not service Is Nothing Then
        service = Nothing
    End If
    If returnValue.Items.Count > 0 Then
        For Each appt As Appointment In returnValue

    ....

    ...

        Next

    ===================================================

    But appt.AppointmentState and appt.IsCancelled is getting the state as 3 and False respectively for the past appointments that are cancelled and so we are not able to Synchronize.

    Kindly let us know on how to resolve the same.

    Thanks


    Thursday, September 7, 2017 5:29 PM

All replies

  • Hi Sucheendarnath,

    Since this forum is discussing and asking questions about the Visual Basic programming language, IDE, libraries, samples, and tools (Not for VB6 questions). And your issue seems more related with the Microsoft Exchange Server , I will move this thread to the more related forum for better help.

    Thanks for your understanding and support.

    Best Regards,

    Cherry



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, September 8, 2017 2:17 AM
  • I would suggest you look at using a CalendarView which will expand any recurring appointment you have https://msdn.microsoft.com/en-us/library/office/dn495614(v=exchg.150).aspx , Also look at using LoadPropertiesFromItems https://blogs.msdn.microsoft.com/exchangedev/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange-web-services/ to ensure all the properties you want to look at are loaded.

    Cheers
    Glen

    Sunday, September 10, 2017 11:04 PM