Problem with GetUsersAsync function

Hello, I have the following problem. When I call the getUsersAsync function with the expand value dateLastLogin I get the following field message:

PureCloudPlatform.Client.V2.Client.ApiException: Error converting value "0000-12-30T00:00:00Z" to type 'System.Nullable1[System.DateTime]'. Path 'entities[0].dateLastLogin', line 1, position 588. at PureCloudPlatform.Client.V2.Client.ApiClient.Deserialize(IRestResponse response, Type type) at PureCloudPlatform.Client.V2.Api.UsersApi.GetUsersAsyncWithHttpInfo(Nullable1 pageSize, Nullable1 pageNumber, List1 id, List1 jabberId, String sortOrder, List1 expand, String integrationPresenceSource, String state)
at PureCloudPlatform.Client.V2.Api.UsersApi.GetUsersAsync(Nullable1 pageSize, Nullable1 pageNumber, List1 id, List1 jabberId, String sortOrder, List`1 expand, String integrationPresenceSource, String state)
at GenesysCloudMonitoring.Function.FunctionHandler(ILambdaContext context)

I think something is wrong with the deserialization.

Greetings Sven

Hi Sven,

Yes, this looks like a bug in the SDK. I'll take a look and put up a fix for a future release.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.