Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get meeting organizer mail address EWS API

I would like to get the meeting organizer mail address with the EWS API. Currently I'm just getting the a few properties of my appointment item. I heard that you can set which properties you want to get. My code looks like that:

CalendarView cview = new CalendarView(start, end);
                    cview.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);
                    FindItemsResults<Appointment> appResults = calenFolder.FindAppointments(cview);
like image 856
andreaspfr Avatar asked Aug 06 '12 09:08

andreaspfr


2 Answers

I had the same issue and managed to populate the Organizer.Address property using this:

ExchangeService service = calenFolder.Service;
service.LoadPropertiesForItems(appResults, PropertySet.FirstClassProperties);
like image 156
Fidel Avatar answered Nov 14 '22 19:11

Fidel


I know the question is old, but since I found it, others may find it as well. And then, the solution is five years older than this question.

The solution is in fact simple and will be found quickly when trying to post this problem at the microsoft forums:

http://social.msdn.microsoft.com/Forums/en-US/0403c00e-008d-4eb2-a061-45e60664573e/how-can-i-get-smtp-address-to-an-organizer-with-ews?forum=exchangesvrdevelopment

Short summary:

The organizer field does not contain an SMTP Address when retrieved with ExchangeService.FindAppointments, but it does if retrieved with ExchangeService.BindToItems or Appointment.Bind.

like image 39
Alexander Avatar answered Nov 14 '22 21:11

Alexander