Question on the result data from ConversationAggregationQuery

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 = new ArrayList<>();
groupByEnum.add(GroupByEnum.QUEUEID);
groupByEnum.add(GroupByEnum.USERID);

	ConversationAggregationQuery conBody_1 = new ConversationAggregationQuery();

	conBody_1.setInterval(interval);
	conBody_1.setGranularity("PT30M");
	List<GroupByEnum> groupByEnum1 = new ArrayList<>();
	groupByEnum1.add(GroupByEnum.QUEUEID);
	conBody_1.setGroupBy(groupByEnum1);
	conBody_1.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 conResult_1 = apiInstance
			.postAnalyticsConversationsAggregatesQuery(conBody_1);

Any advice is welcom,thank you!

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.

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