Legacy Dev Forum Posts

 View Only

Sign Up

Unable to fetch data for nAnswered,nAbandon

  • 1.  Unable to fetch data for nAnswered,nAbandon

    Posted 06-05-2025 19:04

    Churamani_Verma | 2024-08-09 20:23:14 UTC | #1

    thought Postman i am trying to hit below Post api https://api.mypurecloud.ie/api/v2/analytics/conversations/aggregates/query and i am passing below payload { "interval": "2024-08-05T00:00:00.000Z/2024-08-6T00:00:00.000Z", "granularity": "P1D", "groupBy": [ "queueId"

    ], "metrics": [

    "nAnswered",

    "nAbandon"

    ], "filter": { "type": "and", "predicates": [ { "dimension": "mediaType", "value": "voice" }

    ] } } getting error response as below for nAnswered

    { "message": "Value [nAnswered] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait", "code": "invalid.value", "status": 400, "contextId": "c823a04d-8c94-4acd-836a-ca92323c657d", "details": [], "errors": [] } and getting error response as below for nAbandon { "message": "Value [nAbandon] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait", "code": "invalid.value", "status": 400, "contextId": "ab1336a8-aa76-4ca0-b526-74a510a72707", "details": [], "errors": [] } could you please provide me the correct endpoint and payload details to fetch data for nAbandon and nAnswered this data is required to calculate Answer % and Abandon % .

    Thanks


    Jerome.Saint-Marc | 2024-08-12 12:49:10 UTC | #2

    Hello,

    You can find the list and description of available metrics for Conversation Aggregate Queries here. This page on Metrics also lists what metrics are available and in which type of Analytics endpoint.

    Regards,


    Churamani_Verma | 2024-08-12 13:18:02 UTC | #3

    Hi

    I already tried the below link. But there is no endpoint Details available to fetch data for nAbandon and nAnswered. please help me out by providing the correct endpoint details for these two Kpis.

    https://developer.genesys.cloud/analyticsdatamanagement/analytics/metrics#conversation-aggregate-metrics

    Thanks...


    Jerome.Saint-Marc | 2024-08-12 17:12:08 UTC | #4

    nAbandon and nAnswered metrics do not exist. You have to use what's listed in the page I referenced.

    I assume that what you define as nAnswered may correspond to nConnected. And you can read this good post/answer from @Eos_Rios on counting abandoned calls using tAbandon.

    Regards,


    system | 2024-09-12 17:12:56 UTC | #5

    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: 27812