skingaby | 2022-09-21 11:32:28 UTC | #1
I am running the following query in Python:
flowAggUrl = f'https://api.{genesysSite}/api/v2/analytics/flows/aggregates/query'
dataAPI = {
"interval": f"{startDate}T05:00:00.000Z/{endDate}T05:00:00.000Z",
"granularity": "P1D",
"groupBy": [
"flowMilestoneId",
"flowOutcome"
],
"metrics": [
"nFlow",
"nFlowMilestone",
"nFlowOutcome",
"nFlowOutcomeFailed",
"oFlowMilestone",
"tFlow",
"tFlowDisconnect",
"tFlowExit",
"tFlowOutcome"
],
"filter": {
"type": "and",
"predicates": [
]
}
}
response = callAPI(flowAggUrl, headersAPI, dataAPI)
And it is not returning all the Flow Outcomes or Flow Milestones, even though I have no filters in the query, Why is it not returning all the Flow Outcomes? It returns most of them, but not all of them.
Thanks, Simon
skingaby | 2022-09-22 21:12:42 UTC | #2
It turned out that this was a permissions issue. Resetting the Analytics Oauth account's roles and permissions made the missing Outcomes show up properly.
system | 2022-10-22 11:32:35 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 16377