Analytics API Not Returning all the Milestones

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

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.

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