Odbieram wszystkie spotkania z EWS dla konkretnego pokoju na moim koncie 365 w biurze. Podczas zwracania terminów właściwość przedmiotowa spotkania zawiera nazwę organizatora zamiast tematu, który dałem spotkanie.Podczas pobierania spotkania z EWS temat zawiera nazwę organizatora
Czy robię coś nie tak?
przykład kodeks jak im to robić:
ExchangeService service = new ExchangeService();
service.Credentials = new WebCredentials("username", "password");
service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
DateTime StartDate = DateTime.Today.AddDays(-30);
DateTime EndDate = DateTime.Today.AddDays(60);
CalendarView cv = new CalendarView(StartDate, EndDate);
FolderId CalendarFolderId = new FolderId(WellKnownFolderName.Calendar, "[email protected]");
CalendarFolder calendar = CalendarFolder.Bind(service, CalendarFolderId);
FindItemsResults<Appointment> appointments = calendar.FindAppointments(cv);
foreach (Appointment appointment in appointments.ToList())
{
//this contains the wrong value.....
string subject = appointment.Subject;
//this is correct and has the same value as the incorrect subject
string organizer = appointment.Organizer.Name;
}
ten powinien być oznaczony jako odpowiedź. dzięki! –