AggregationQuery error

I am getting below error when I get the conversation aggregates
This was working good till yesterday. I am using pythin libraries

AttributeError: 'module' object has no attribute 'AggregationQuery'

AttributeError Traceback (most recent call last)
in ()
1 api_conversation = PureCloudPlatformClientV2.ConversationsApi()
----> 2 body = PureCloudPlatformClientV2.AggregationQuery()

Hi Sindhuja, I believe this change is the cause of your issue.

The analytics apis for aggregations have been enhanced to be more accurate, a side effect of which is needing the latest SDK version so the new classes are available. You'll need to select one of these

Thank you Alex. How about PureCloudPlatformClientV2.AnalyticsQueryFilter(). I dont see this module as well.

The tutorial and others documents were still referring to old one. Attached a sample link https://developer.mypurecloud.com/api/tutorials/analytics-conversation-aggregate-query/?language=python&step=1

Can you also provide me the latest analytics api details which I can refer.

The AnalyticsQueryFilter() class was modified in the same way as the Query classes, you'll just need to select the one that corresponds to the prefix you're using. e.g. ConversationAggregateQueryFilter.

As for the docs, thanks for the catch. Those need to be updated to reflect the improvements; however, the general outline of the example should still be current if the correct classes are being used.

Is there a feed to follow to stay aware of changes to the SDKs? Or a changelog with each release?

Hi Andy,

You can see the SDK change log here. You . can also subsribe to the Developer Forum to receive change announcements before changes occur.

For SDK version-specific change logs, look at releaseNotes.md in the repo and see the historical revisions of that file for previous versions. You can also browse the historical commits for the entire repo to see the exact source code changes.

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