question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetUserAvailability issue

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amaanmcommented, Jun 16, 2016

I have had the same issues, so I disabled the value preprocessor (described and submitted PR for issue #8 ) which is already merged.

0reactions
isakarcommented, Apr 6, 2016

I tried with the xml2js 0.4.4 but still process incorrectly, for now i just disabled it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Office 365 getUserAvailability stopped working #637 - GitHub
This is 100% an issue in Office 365, I have an app that has been working for 6 years that suddenly stopped working....
Read more >
"GetUserOofSettings", "SetUserOofSettings" and ... - Microsoft Support
Fixes an issue in which "GetUserOofSettings", "SetUserOofSettings" and "GetUserAvailability" operations do not support Exchange Impersonation on the ...
Read more >
GetUserAvailability() System.TimeoutException (Free Busy ...
In some environments, there may be intermittent issues with free busy requests from Exchange to Domino direction and you may see " 4253847, ......
Read more >
Office 365 EWS - GetUserAvailability ID is null - Stack Overflow
The problem I have, is that the Details.StoreId is always null. I have two 365 Exchange environments, our and a client's.
Read more >
Free/busy Exchange hybrid troubleshooting with Microsoft Edge
Conduct a free/busy lookup on a person with a mailbox on-premises; Select the Network tab; Select the entry with “GetUserAvailability” devtools- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found