OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
869 stars 560 forks source link

GetUserAvailability mergedFreeBusyIntervalInMinutes not being considered #412

Open ramamurari opened 9 years ago

ramamurari commented 9 years ago

Hi, I have a meeting from 8-8.30 , 8.45-9.15, 10-11 in a user's calendar. In Get User Availability call for this user with FreeBusy option, when I give mergedFreeBusyIntervalInMinutes as 30 or 60, the results are same. What should be the behaviour of this parameter when it is set to 30 minutes or 60 minutes. I am setting the reuqested View as FreeBusyMerged .

Thanks and Regards, Rama.

serious6 commented 9 years ago

Are these parameters included to the request? Or are they maybe ignored? Please also post some code snippet that triggers the problem.

ramamurari commented 9 years ago

Message: <?xml version='1.0' encoding='utf-8'?>soap:Headert:ExchangeImpersonation><t:ConnectingSID><t:SmtpAddress>jake_pe@pihub.onmicrosoft.com/t:SmtpAddress/t:ConnectingSID/t:ExchangeImpersonation/soap:Headersoap:Body<m:GetUserAvailabilityRequestt:TimeZone><t:Bias>0/t:Bias<t:StandardTime><t:Bias>0/t:Bias<t:Time>02:00:00/t:Time<t:DayOrder>1/t:DayOrder<t:Month>3/t:Month<t:DayOfWeek>Sunday/t:DayOfWeek/t:StandardTime<t:DaylightTime><t:Bias>0/t:Bias<t:Time>02:00:00/t:Time<t:DayOrder>1/t:DayOrder<t:Month>10/t:Month<t:DayOfWeek>Sunday/t:DayOfWeek/t:DaylightTime/t:TimeZone<m:MailboxDataArray><t:MailboxData><t:Email><t:Address>victorsm@pihub.onmicrosoft.com/t:Address/t:Email<t:AttendeeTypeRequired/t:AttendeeTypet:ExcludeConflicts>false/t:ExcludeConflicts/t:MailboxData<t:MailboxData><t:Email><t:Address>joe_girard_sm@pihub.onmicrosoft.com/t:Address/t:Email<t:AttendeeTypeOptional/t:AttendeeTypefalse/t:ExcludeConflicts/t:MailboxData/m:MailboxDataArray25/t:GoodThreshold8/t:MaximumResultsByDay0/t:MaximumNonWorkHourResultsByDay60/t:MeetingDurationInMinutesFair/t:MinimumSuggestionQuality2015-09-30T00:00:00/t:StartTime2015-10-01T00:00:00/t:EndTime/t:DetailedSuggestionsWindow/t:SuggestionsViewOptions/m:GetUserAvailabilityRequest/soap:Body/soap:Envelope

Message: <?xml version="1.0" encoding="utf-8"?>/s:HeaderNoError2015-09-30T00:00:00Excellent2015-09-30T02:30:00trueExcellentFreeFree2015-09-30T03:00:00trueExcellentFreeFree2015-09-30T03:30:00trueExcellentFreeFree2015-09-30T04:00:00trueExcellentFreeFree2015-09-30T04:30:00trueExcellentFreeFree2015-09-30T05:00:00trueExcellentFreeFree2015-09-30T05:30:00trueExcellentFreeFree2015-09-30T06:00:00trueExcellentFreeFree/s:Body/s:Envelope

ramamurari commented 9 years ago

Though meeting duration in minutes is 60, it gives 30 mins calendar events as well in the resul