Legacy Dev Forum Posts

 View Only

Sign Up

Problem with GetUsersAsync function

  • 1.  Problem with GetUsersAsync function

    Posted 06-05-2025 18:06

    vrvoice1 | 2022-08-24 10:39:59 UTC | #1

    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


    anon11147534 | 2022-08-24 11:13:47 UTC | #2

    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.


    system | 2022-09-24 11:14:33 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 16011