Legacy Dev Forum Posts

 View Only

Sign Up

Analytics conversations aggregates: filter on metric

  • 1.  Analytics conversations aggregates: filter on metric

    Posted 06-05-2025 18:16

    Marne | 2020-03-02 13:25:32 UTC | #1

    My goal is to get an aggregate of all conversations with a talk time greater then X.

    I've tried accomplishing this by creating a conversations aggregate query and adding a filter with a predicate with type 'metric' and choosing a specific metric (via the Analytics Query Builder of the API Explorer). Unfortunately when I do this I receive a 400 response code with the message "metric filters not supported".

    The documentation doesn't specify anything regarding filters being supported or not. Am I doing something wrong? Is there another way to accomplish my goal besides using a conversations details query?


    Jerome.Saint-Marc | 2020-03-03 14:09:01 UTC | #2

    I believe that filter of type metric is not supported in the Conversation Aggregate Query.

    In the API description (for POST /api/v2/analytics/conversations/aggregates/query), the metric attribute is not listed in the ConversationAggregateQueryPredicate. Here: https://developer.mypurecloud.com/api/rest/v2/analytics/index.html

    You can see the same from the API Explorer.


    system | 2020-04-03 14:07:29 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: 7242