c# - When retrieving an appointment with EWS the subject contains the organizer name -
im retrieving appointments ews specific room in office 365 account. when returning appointment(s) subject property of appointment contains name of organizer instead of subject gave appointment.
im doing wrong?
code example how im doing it:
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, "room1@company.com"); calendarfolder calendar = calendarfolder.bind(service, calendarfolderid); finditemsresults<appointment> appointments = calendar.findappointments(cv); foreach (appointment appointment in appointments.tolist()) { //this contains wrong value..... string subject = appointment.subject; //this correct , has same value incorrect subject string organizer = appointment.organizer.name; }
there nothing wrong code way mailbox has been configured. rooom mailbox can configured automatic processing setting using remote power-shell , set-calendarprocessing cmdlet see http://technet.microsoft.com/en-us/library/dd335046(v=exchg.150).aspx eg
with particular issue mailbox has been configured using deletesubject parameter "specifies whether remove or keep subject of incoming meeting requests. valid input parameter is$true or $false. default value $true." , addorganizertosubject parameter "specifies whether meeting organizer's name used subject of meeting request. valid input parameter $true or $false. default value $true."
you won't able fix existing data if reconigure mailbox new appointments sent appear how want
cheers glen
Comments
Post a Comment