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.
Original Message:
Sent: 04-15-2025 02:58
From: Wojciech Piatkiewicz
Subject: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified
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
Original Message:
Sent: 04-14-2025 22:27
From: Matsumoto Shun
Subject: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified
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
Original Message:
Sent: 04-14-2025 03:08
From: Phaneendra Avatapalli
Subject: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified
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
Original Message:
Sent: 04-14-2025 02:56
From: Matsumoto Shun
Subject: POST: /api/v2/analytics/queues/observations/query The number of queue IDs that can be specified
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
------------------------------