none
[EWSMA] FindAppointments for a room is also returning my calendar items which dont have room assigned RRS feed

  • Question

  • Hi,

    I already have a recurring meeting, lets say 2pm every day for the next few weeks. No room is assigned as its just a voice dial-in meeting.

    When i execute the EWS method Findappointments:

    var calendarView = new CalendarView(start, end);
    var folderId = new FolderId(WellKnownFolderName.Calendar, room.Address);
    var roomAppointments = _exchangeService.FindAppointments(folderId, calendarView);

    It returns all the appointments booked for the supplied room, but it also returns all of my calendar entries which fall in the date range, but they arent assigned to the room i'm searching.

    Is there any way to exclude these items in my calendar which dont have room assigned as part of this query?

    thanks.


    • Edited by Mipsnips Wednesday, April 13, 2016 3:19 AM
    Wednesday, April 13, 2016 3:18 AM

Answers

  • Never mind, i think one of my helper classes i was building up the folderId object and setting it as type Calendar, but forgot to pass in the EmailAddress so it was just defaulting to the items in my own calendar :-)
    • Marked as answer by Mipsnips Wednesday, April 13, 2016 5:40 AM
    Wednesday, April 13, 2016 5:40 AM