These are chat archives for gautamsi/ews-javascript-api

29th
Sep 2016
Patrick VanDusen
@pdusen
Sep 29 2016 18:02
Hi
I'm trying to use GetRooms or GetRoomLists but I can't find it anywhere in the documentation
I just see it in the changelog
Gautam Singh
@gautamsi
Sep 29 2016 19:11
GetRoomLists():EmailAddressCollection gets you EmailAddressCollection object when resolved
Patrick VanDusen
@pdusen
Sep 29 2016 19:12
Sorry, I'm running into a new problem now
When I try to call GetRoomLists it insists that the exchange server version needs to be at least Exchange 2013
I'm talking to office365.com. The version is high enough.
Gautam Singh
@gautamsi
Sep 29 2016 19:13
the version is when you initialize the ExchangeService instance
Patrick VanDusen
@pdusen
Sep 29 2016 19:13
ews.ExchangeVersion.Exchange2013
Just as the example says
Gautam Singh
@gautamsi
Sep 29 2016 19:14
ok
you get the error in the response from server or just gets rejected before callign the service?
Patrick VanDusen
@pdusen
Sep 29 2016 19:14
What happened was, I found that the exch object doesn't have the GetRoomLists() function when initialized this way
const exch = new ews.ExchangeService(ews.ExchangeVersion.Exchange2013);
So then I initialized another service around that
...And now it's working for some reason
It's been a rough day
Gautam Singh
@gautamsi
Sep 29 2016 19:16
getroomlist should work with 2010 version as well
    /**
     * @internal Gets the request version.
     *
     * @return  {ExchangeVersion}      Earliest Exchange version in which this request is supported.
     */
    GetMinimumRequiredServerVersion(): ExchangeVersion {
        return ExchangeVersion.Exchange2010;
    }
all good now?
Patrick VanDusen
@pdusen
Sep 29 2016 19:17
Yeah, I'm sorry, it seems to be working now
I have no explanation
Gautam Singh
@gautamsi
Sep 29 2016 19:17
np, I am glad that it worked for you
Patrick VanDusen
@pdusen
Sep 29 2016 19:21
Is there a way to disable all of the request data that ews-javascript-api prints to console?
Gautam Singh
@gautamsi
Sep 29 2016 19:25
yes, set ews.EwsLogging.DebugLogEnabled = false after require statement. i should turn this off by default. I will do that before 1.0
Patrick VanDusen
@pdusen
Sep 29 2016 19:25
Thanks
Patrick VanDusen
@pdusen
Sep 29 2016 19:59
I'm getting an error on GetUserAvailability
This message was deleted
faultstring: 'You must specify TimeZone'
I'm using the example code
It doesn't make a difference if I set kind to DateTimeKind.Local explicitly
Gautam Singh
@gautamsi
Sep 29 2016 20:02
no its not, it is by design, i have to work on proper timezone sometime later. targetting before 1.0
Patrick VanDusen
@pdusen
Sep 29 2016 20:03
Is there a workaround?
...and now it works
Gautam Singh
@gautamsi
Sep 29 2016 20:05
it was about the DateTimeKind when you use GetUserAvailability it is always UTC
Patrick VanDusen
@pdusen
Sep 29 2016 20:05
Scary stuff
Gautam Singh
@gautamsi
Sep 29 2016 20:06
can you do a trace on what was it sending to service when working vs not working?
if you turn on logging it does give you that information
Patrick VanDusen
@pdusen
Sep 29 2016 20:06
I'm not sure how to trace
Oh, that's right
But I had it off when it was failing
Gautam Singh
@gautamsi
Sep 29 2016 20:06
when you happen to catch it next time :)
Patrick VanDusen
@pdusen
Sep 29 2016 20:06
Will do
Gautam Singh
@gautamsi
Sep 29 2016 20:07
if it is generating different xml each time then it is library issue, if it sends same xml to server each time and server returns error, it means service issue
Patrick VanDusen
@pdusen
Sep 29 2016 20:08
It's possible, but that would be surprising from office365