i am having trouble getting my data action to retrieve then assemble the queue information in a way architect logic can use.
From the website https://developer.genesys.cloud/useragentman/users/#get-api-v2-routing-users--userId--utilization i am able to use the GET /api/v2/users/{userId}/queues to get a list of queues for a user.
GET /api/v2/users/3be90655-1653-4678-9604-81e71df53465/queues?pageSize=10&pageNumber=1
RESULTS:
{
"entities": [
{
"id": "75d65996-bc86-46a8-9336-9a700ec4bfe1",
"name": "Q-Overflow",
"joined": true,
"selfUri": "/api/v2/routing/queues/75d65996-bc86-46a8-9336-9a700ec4bfe1"
},
{
"id": "6eea6448-00ca-4434-946b-a941a5a8da17",
"name": "Q-Existing",
"joined": true,
"selfUri": "/api/v2/routing/queues/6eea6448-00ca-4434-946b-a941a5a8da17"
}
],
"pageSize": 10,
"pageNumber": 1,
"total": 2,
"firstUri": "/api/v2/users/3be90655-1653-4678-9604-81e71df53465/queues?pageSize=10&pageNumber=1",
"lastUri": "/api/v2/users/3be90655-1653-4678-9604-81e71df53465/queues?pageSize=10&pageNumber=1",
"selfUri": "/api/v2/users/3be90655-1653-4678-9604-81e71df53465/queues?pageSize=10&pageNumber=1",
"pageCount": 1
}
The 2 bits of information i am trying to mine using this data action are:
(1) Is the agent a member of Q-Existing (specifically) and
(2) is "joined": true for Q-Existing
MY DATA ACTION
Request URL Template = /api/v2/users/${input.User_ID}/queues?pagesize=10&pageNumber=1&joined=true
RESPONSE =
{
"translationMap": {
"Queue": "$.entities[].id",
"joined": "$.entities[].joined"
},
"translationMapDefaults": {
"Queue": "[""]",
"joined": "[""]"
},
"successTemplate": "{\n "Queue": ${Queue},\n \n"joined": ${joined}\n}"
}
QUIESTIONS:
(1) How can i use a boolean output "tick" for joined true/false in an architect decision?
(2) Can a data action translate a YES/NO boolean result into the words TRUE/FALSE as a String?
(3) Can we filter for just Queue ID 6eea6448-00ca-4434-946b-a941a5a8da17 and only retrieve those results (to narrow down the list)?
(4) Can we go a step further and filter for the Queue ID 6eea6448-00ca-4434-946b-a941a5a8da17 AND if Joined = TRUE?
Any feedback welcome