An appointment that has participants, always return an empty collection when queried for using the appointment.Invitees property.
Here is what I am trying to do,
var calendarStore = await AppointmentManager.RequestStoreAsync(AppointmentStoreAccessType.AllCalendarsReadOnly);
var appointments = await calendarStore.FindAppointmentsAsync(DateTimeOffset.Now, TimeSpan.FromDays(30), new FindAppointmentsOptions() { IncludeHidden = true });
foreach (var appointment in appointments)
{
// appointment.Invitees is always null, even for appointments that has some!
foreach (var invitee in appointment.Invitees)
{
// do something here...
}
}
I tried to add Contacts capability in addition to Appointment, but in vain. Any thoughts on why such a bizarre behavior?