Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Question About Filters

    Posted 06-05-2025 18:08

    flip | 2017-11-10 19:53:00 UTC | #1

    I wondering what the correct Syntax for filters?

    Simplified Code

    PureCloudPlatformApiSdk.configuration.accesstoken = responseJson['accesstoken'] PureCloudPlatformApiSdk.configuration.host = 'https://api.mypurecloud.ie'

    api_instance = PureCloudPlatformApiSdk.AnalyticsApi() body = PureCloudPlatformApiSdk.AggregationQuery()

    body.interval = pcdate body.group_by = ['queueid'] body.filter. =

    I get this far, but can not figure out the syntax for the filter.

    Thank you for the help.


    anon28066628 | 2017-11-13 16:02:01 UTC | #2

    Hi flip,

    If you're using the Python SDK, this is a shortcut that might help:

    https://github.com/rjsmith64/py-purecloud-participant-data/blob/master/py-purecloud-participant-data.py#L23-L29

    It assumes that query_json contains a parsed json object representing a valid query (see the Analytics Query Builder to build samples).


    system | 2017-12-14 16:02:35 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: 2084