Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-14-2025 02:57
    Hello, Community
    I want to count the number of calls waiting for multiple queues specified using the API this time.
     
    I am thinking of specifying about 120 queue IDs, but is that possible?
    Also, what is the maximum number of queue IDs that can be specified?

    Best regards,

    #Integrations
    #PlatformAPI

    ------------------------------
    Matsumoto Shun
    Unknown
    ------------------------------


  • 2.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-14-2025 03:08
    Edited by Phaneendra Avatapalli 04-14-2025 03:09

    Hello Matsumoto, I found this thread which talks about the limits https://community.genesys.com/discussion/queue-views-activityperformance-maximum-number-of-queues-in-filter

    More information about limits is here https://developer.genesys.cloud/organization/organization/limits#analytics-api

    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    Monash University
    Australia
    ------------------------------



  • 3.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-14-2025 03:28

    Hello, Phaneendra

    Thank you for your reply.
     
    In the article I read about the details of the restrictions, it seems that the maximum number of queues is "100".
     
    However, when I set queueId1~queueId102 in the actual Genesys Cloud data action and tested it, it was successful.
     
    Does this mean that even if the results of queues 101 and above cannot be obtained, they are still judged as successful?


    ------------------------------
    Matsumoto Shun
    Unknown
    ------------------------------



  • 4.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-15-2025 01:58

    yes, you can do it, but it does not mean that Genesys will guarantee it every time it will work the same. We found the limits to be much higher. Also, do not forget that you can always group several queues together!



    ------------------------------
    Living on the beach and loving it!
    ------------------------------



  • 5.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-14-2025 22:28

    Based on the following request body, can we specify and execute approximately 130 queue IDs in a single data action?

    {
      "metrics": [
        "oWaiting"
      ],
      "filter": {
        "clauses": [
          {
            "type": "or",
            "predicates": [
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId1}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId2}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId3}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId4}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId5}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId6}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId7}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId8}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId9}"
              },
              {
                "type": "dimension",
                "dimension": "queueId",
                "operator": "matches",
                "value": "${input.queueId10}"
              }
            ]
          }
        ],
        "type": "and",
        "predicates": [
          {
            "type": "dimension",
            "dimension": "mediaType",
            "operator": "matches",
            "value": "voice"
          }
        ]
      }
    }



    ------------------------------
    Matsumoto Shun
    Unknown
    ------------------------------



  • 6.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-15-2025 02:58

    Hello Matsumoto,

    where are you planning to call that action from ? As you can also specify some simple file that will hold queueIDs tht you want to count, and based on number of IDs in that file you can slice request per 100 queues, and loop in multiple requests (if you have 130 queue IDs, it will get the request body for 1st 100, and then for remaining 30 and run the same API again with previously collected input). 

    This will require some more work with preparing dynamic input request body template, but in the end modifying list of queues will be as easy as taking off/adding IDs to the file that holds the list. I'm happy to help you out with setting up the right code when I know how you are planning to run/use that.



    ------------------------------
    Wojciech Piatkiewicz
    Mr
    ------------------------------



  • 7.  RE: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified

    Posted 04-15-2025 07:56

    Hello Wojciech,  

    Could you please help me with dynamic input for the body template? I'm running this action within the In Queue flow and using the result to include the number of calls waiting across all queues as a prompt.

    I attempted to get it working, but it didn't succeed. However, I managed to make it work by defining the number of queues manually.  

    Please let me know if you can assist.  

    Regards,  
    Phaneendra  



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    Monash University
    Australia
    ------------------------------