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

29th
Sep 2016
Patrick VanDusen
@pdusen
Sep 29 2016 18:02 UTC
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 UTC
GetRoomLists():EmailAddressCollection gets you EmailAddressCollection object when resolved
Patrick VanDusen
@pdusen
Sep 29 2016 19:12 UTC
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 UTC
the version is when you initialize the ExchangeService instance
Patrick VanDusen
@pdusen
Sep 29 2016 19:13 UTC
ews.ExchangeVersion.Exchange2013
Just as the example says
Gautam Singh
@gautamsi
Sep 29 2016 19:14 UTC
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 UTC
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 UTC
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 UTC
Yeah, I'm sorry, it seems to be working now
I have no explanation
Gautam Singh
@gautamsi
Sep 29 2016 19:17 UTC
np, I am glad that it worked for you
Patrick VanDusen
@pdusen
Sep 29 2016 19:21 UTC
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 UTC
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 UTC
Thanks
Patrick VanDusen
@pdusen
Sep 29 2016 19:59 UTC
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 UTC
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 UTC
Is there a workaround?
...and now it works
Gautam Singh
@gautamsi
Sep 29 2016 20:05 UTC
it was about the DateTimeKind when you use GetUserAvailability it is always UTC
Patrick VanDusen
@pdusen
Sep 29 2016 20:05 UTC
Scary stuff
Gautam Singh
@gautamsi
Sep 29 2016 20:06 UTC
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 UTC
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 UTC
when you happen to catch it next time :)
Patrick VanDusen
@pdusen
Sep 29 2016 20:06 UTC
Will do
Gautam Singh
@gautamsi
Sep 29 2016 20:07 UTC
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 UTC
It's possible, but that would be surprising from office365