GetUserAvailability issue
See original GitHub issueI am so glad to found your plug-in, actually it’s the only one in which I can do calls to the EWS functions. Hoping you can help me cause I am trying to get the user availability and I get a request, but I think in some point the data is missing, I mean, the start and end time in the response I am seeing in StartTime and EndTime is always ‘00’
This is an example of the response:
{"Envelope":{"$":{"xmlns:s":"//schemas.xmlsoap.org/soap/envelope/"},"Header":[{"ServerVersionInfo":[{"$":{"MajorVersion":"15","MinorVersion":"0","MajorBuildNumber":"1156","MinorBuildNumber":"2","xmlns:h":"//schemas.microsoft.com/exchange/services/2006/types","xmlns":"//schemas.microsoft.com/exchange/services/2006/types","xmlns:xsd":"//www.w3.org/2001/XMLSchema","xmlns:xsi":"//www.w3.org/2001/XMLSchema-instance"}}]}],"Body":[{"$":{"xmlns:xsi":"//www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"//www.w3.org/2001/XMLSchema"},"GetUserAvailabilityResponse":[{"$":{"xmlns":"//schemas.microsoft.com/exchange/services/2006/messages"},"FreeBusyResponseArray":[{"FreeBusyResponse":[{"ResponseMessage":[{"$":{"ResponseClass":"Success"},"ResponseCode":["NoError"]}],"FreeBusyView":[{"FreeBusyViewType":[{"_":"FreeBusy","$":{"xmlns":"//schemas.microsoft.com/exchange/services/2006/types"}}],"CalendarEventArray":[{"$":{"xmlns":"//schemas.microsoft.com/exchange/services/2006/types"},"CalendarEvent":[{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Tentative"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["OOF"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Tentative"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Busy"]},{"StartTime":["00"],"EndTime":["00"],"BusyType":["Tentative"]}]}],"WorkingHours":[{"$":{"xmlns":"//schemas.microsoft.com/exchange/services/2006/types"},"TimeZone":[{"Bias":["300"],"StandardTime":[{"Bias":["0"],"Time":["00"],"DayOrder":["1"],"Month":["11"],"DayOfWeek":["Sunday"]}],"DaylightTime":[{"Bias":["-60"],"Time":["00"],"DayOrder":["2"],"Month":["3"],"DayOfWeek":["Sunday"]}]}],"WorkingPeriodArray":[{"WorkingPeriod":[{"DayOfWeek":["Monday Tuesday Wednesday Thursday Friday"],"StartTimeInMinutes":["480"],"EndTimeInMinutes":["1020"]}]}]}]}]}]}]}]}]}}
And the args i am building to get it: var ewsAvailFunction = ‘GetUserAvailability’; var ewsAvail = { ‘TimeZone’:{ ‘Bias’ : ‘480’, ‘StandardTime’:{ ‘Bias’:‘0’, ‘Time’:‘02:00:00’, ‘DayOrder’:‘5’, ‘Month’:‘10’, ‘DayOfWeek’:‘Sunday’ }, ‘DaylightTime’:{ ‘Bias’:‘300’, ‘Time’:‘02:00:00’, ‘DayOrder’:‘1’, ‘Month’:‘4’, ‘DayOfWeek’:‘Sunday’ } }, ‘MailboxDataArray’:{ ‘MailboxData’:{ ‘Email’:{ ‘Name’:‘’, ‘Address’: ‘isakargarcia@consultantemail.com’, ‘RoutingType’:‘SMTP’ }, ‘AttendeeType’:‘Organizer’, ‘ExcludeConflicts’:‘false’ } }, ‘FreeBusyViewOptions’:{ ‘TimeWindow’:{ ‘StartTime’:‘2016-03-31T00:00:00’, ‘EndTime’:‘2016-04-02T00:00:00’ }, ‘MergedFreeBusyIntervalInMinutes’:‘30’, ‘RequestedView’:‘FreeBusy’ } };
Please, let me know any thought!
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
I have had the same issues, so I disabled the value preprocessor (described and submitted PR for issue #8 ) which is already merged.
I tried with the xml2js 0.4.4 but still process incorrectly, for now i just disabled it.