Legacy Dev Forum Posts

 View Only

Sign Up

Queue Conversation with the longest duration

  • 1.  Queue Conversation with the longest duration

    Posted 06-05-2025 18:43

    Chris_Carr | 2022-05-31 17:37:36 UTC | #1

    Hello,

    Hoping for some advice and guidance.

    I am trying to create a data action that checks all of the current calls that are in a queue and makes a decision based on the longest call in the queue.

    How do I go about getting the longest call in a queue?

    I am assuming that I can use /api/v2/analytics/conversations/details/query with the query below, or is there a better way?

    {
     "interval": "2022-05-30T23:00:00.000Z/2022-05-31T23:00:00.000Z",
     "order": "asc",
     "orderBy": "conversationStart",
     "paging": {
      "pageSize": 25,
      "pageNumber": 1
     },
     "segmentFilters": [
      {
       "type": "or",
       "predicates": [
        {
         "type": "dimension",
         "dimension": "queueId",
         "operator": "matches",
         "value": "2bdc494e-3db9-4f53-8327-a6439d548a1c"
        }
       ]
      }
     ],
     "conversationFilters": [
      {
       "type": "or",
       "predicates": [
        {
         "type": "dimension",
         "dimension": "conversationEnd",
         "operator": "notExists",
         "value": null
        }
       ]
      }
     ]
    }

    Thank you.


    Jason_Mathison | 2022-05-31 18:05:21 UTC | #2

    Hi CHris,

    While someone in this room may be able to help, you might also want to ask your query question in the reporting and analytics room.

    --Jason


    Chris_Carr | 2022-05-31 18:18:03 UTC | #3

    Hi Jason,

    Thank you. Will do.

    -Chris


    John_Carnell | 2022-05-31 19:10:02 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 14949