i have a problem when i try to see the appointments of a room.
I created a service with the EWS Managed API using my own credentials (email@example.com). Then i created a method to return a list of custom objects named RoomMeeting by passing my service and the smtp address of the room mailbox (firstname.lastname@example.org).
Here is the method :
public static ObservableCollection<RoomMeeting> FindAppointmentsForTodayTomorrow(ExchangeService service, string roomAddress)
ObservableCollection<RoomMeeting> meetings = new ObservableCollection<RoomMeeting>();
CalendarView calendarView = new CalendarView(DateTime.Now, DateTime.Today + TimeSpan.FromDays(1));
calendarView.PropertySet = new PropertySet();
calendarView.MaxItemsReturned = 10;
Mailbox mailbox = new Mailbox(roomAddress);
FolderId calendarFolder = new FolderId(WellKnownFolderName.Calendar, mailbox);
// var result = service.FindAppointments(WellKnownFolderName.Calendar, calendarView);
FindItemsResults<Item> response = service.FindItems(WellKnownFolderName.Calendar, calendarView);
for (int i = 0; i < response.Items.Count; i++)
if (response.Items[i] is Appointment)
Appointment appointment = (Appointment)response.Items[i];
RoomMeeting meeting = new RoomMeeting();
meeting.Duration = appointment.Duration;
meeting.Start = appointment.Start;
meeting.End = appointment.End;
meeting.Subject = appointment.Subject;
meeting.Owner = appointment.Organizer.Name;
The problem is that i only get the appointments made by email@example.com and not all the appointments relative to firstname.lastname@example.org.
How can i do that ?
Thanks for the help
- Edited by GraphicStream Wednesday, January 30, 2013 2:46 AM