Legacy Dev Forum Posts

 View Only

Sign Up

Question on the result data from ConversationAggregationQuery

  • 1.  Question on the result data from ConversationAggregationQuery

    Posted 06-05-2025 18:24

    Jli | 2022-12-14 12:40:55 UTC | #1

    Hi, I have a question on the result data which got from the flowing analystic API, can you give me some advice ,thank you ! (Or have you ever run into the same problem?)

    /api/v2/analytics/conversations/aggregates/query

    ■my problem Using the same condition I requsted data from the API above by Devevoper Tools and my application,but the result data were different. (The data I got by my application only contains a part of the data I got from Devevoper Tools.)

    ■conditions of the script (Devevoper Tools) { "interval": "2022-12-12T00:00:00.000Z/2022-12-12T23:59:59.999Z", "granularity": "PT30M", "groupBy": ["queueId", "userId" ], "metrics": [ "nBlindTransferred", "nCobrowseSessions", "nConnected", "nConsult", "nConsultTransferred", "nError", "nOffered", "nOutbound", "nOutboundAbandoned", "nOutboundAttempted", "nOutboundConnected", etc. ], "filter": { "type": "and", "predicates": [ { "dimension": "direction", "value": "outbound" }, { "dimension": "divisionid", "value": "a3f544f6-3477-46e3-a135-df4f53de4302" } ] } } ■conditions of the script (My appication) String interval = "2022-12-12TT00:00:00.000Z/2022-12-12TT23:59:59.999Z"; List<GroupByEnum> groupByEnum = new ArrayList<>(); groupByEnum.add(GroupByEnum.QUEUEID); groupByEnum.add(GroupByEnum.USERID);

    ConversationAggregationQuery conBody_1 = new ConversationAggregationQuery();

    conBody1.setInterval(interval); conBody1.setGranularity("PT30M"); List<GroupByEnum> groupByEnum1 = new ArrayList<>(); groupByEnum1.add(GroupByEnum.QUEUEID); conBody1.setGroupBy(groupByEnum1); conBody1.setMetrics(getMetrics());→same metrics as Develpoper Tools ConversationAggregateQueryFilter conFilter1 = new ConversationAggregateQueryFilter(); conFilter1.setType(TypeEnum.AND);

    List<ConversationAggregateQueryPredicate> conPredicateList1 = new ArrayList<>(); ConversationAggregateQueryPredicate conPredicate1 = new ConversationAggregateQueryPredicate(); conPredicate1.setDimension(DimensionEnum.DIVISIONID); conPredicate1.setValue("a3f544f6-3477-46e3-a135-df4f53de4302"); conPredicateList1.add(conPredicate1); conFilter1.setPredicates(conPredicateList1); conBody_1.setFilter(conFilter1);

    ConversationAggregateQueryResponse conResult1 = apiInstance .postAnalyticsConversationsAggregatesQuery(conBody1);

    Any advice is welcom,thank you!


    tim.smith | 2023-01-03 16:18:17 UTC | #2

    Jli, post:1, topic:17644
    Using the same condition I requsted data from the API above by Devevoper Tools and my application,but the result data were different.

    I'm assuming your application is authorizing differently than the developer tools. If you're using a different user or client credentials (not a user and bears no relation to your user's config), the resulting access token will have different access. Check the configuration for your user and the oauth client and ensure that they have the same permissions and divisions. If you need further assistance troubleshooting your org's data, please open a case with Genesys Cloud Care.


    system | 2023-02-03 16:18:24 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: 17644