Legacy Dev Forum Posts

 View Only

Sign Up

How to set aggregation query granularity

  • 1.  How to set aggregation query granularity

    Posted 06-05-2025 18:04

    matthew | 2016-06-16 21:17:03 UTC | #1

    referring to : https://developer.mypurecloud.com/api/rest/client-libraries/csharp/latest/AggregationQuery.html

    how can i set the granularity? Its supposed to be a ISO - 8601 string, yet its listed as a nullable datetime.

    anyone any idea?

    thanks!


    KevinGlinski | 2016-06-17 14:24:11 UTC | #2

    looks like that field is improperly defined in the schema. I'll get it fixed, but it may take a week or two before the fix makes it to prod and the sdk is regenerated.

    in the meantime, the source is here https://github.com/MyPureCloud/purecloud_api_sdk_csharp/tree/master/build so you can use it to reimplement that method/class if you need the fix faster than the normal release flow.


    SherwinF | 2016-07-19 22:39:19 UTC | #3

    @KevinGlinski, any word on when this fix will be rolled out? I noticed the nuget package has been updated a few times but the github repo still has the bug. (I know I can fix it and compile on my own, just wondering when it will be fixed officially)

    Thanks,

    Sherwin


    tim.smith | 2016-12-02 18:32:42 UTC | #4

    The SDK is generated based on the API's Swagger definition, so the fix won't make it to the SDK until after the fix is in the API and then the SDK has been regenerated. Keep an eye on the API documentation to see when the API has been updated. After that happens, the next time the SDK is generated, it will contain the fix. As Kevin mentioned, you can compile the SDK from source and implement any workarounds you need until the fix is put in place.

    Edit: this issue is API-1641


    system | 2017-08-28 19:24:55 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 85