Hi there, I have a question about LastCalledAgentRouting.
I created a DataAction based on Jerome Saint-Marc's answer and tested it,but I can't get any data.
I can get the data by specifying the same conditions as the Body Request in the Developer Tool.
Are there any differences between using the Developer Tool and using it on Genesys Cloud?
Can you give me some advice?
If this API cannot be used on Genesys Cloud, please let me know an API that can achieve similar results.
Input Configuration:
{
"requestUrlTemplate": "/api/v2/analytics/conversations/details/query",
"requestType": "POST",
"headers": {
"Content-Type": "application/json"
},
"requestTemplate": "{\n "interval": "${input.INTERVAL}",\n "order": "desc",\n "orderBy": "conversationStart",\n "paging": {\n "pageSize": 1,\n "pageNumber": 1\n },\n "segmentFilters": [\n {\n "type": "and",\n "predicates": [\n {\n "type": "dimension",\n "dimension": "mediaType",\n "operator": "matches",\n "value": "voice"\n },\n {\n "type": "dimension",\n "dimension": "purpose",\n "operator": "matches",\n "value": "agent"\n },\n {\n "type": "dimension",\n "dimension": "ani",\n "operator": "matches",\n "value": \tel:${input.ANI}\n }\n ]\n }\n ]\n}"
}
Body Request:
{
"interval": "2022-10-21T00:00:00/2022-11-21T00:00:00",
"order": "desc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 1,
"pageNumber": 1
},
"segmentFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "mediaType",
"operator": "matches",
"value": "voice"
},
{
"type": "dimension",
"dimension": "purpose",
"operator": "matches",
"value": "agent"
},
{
"type": "dimension",
"dimension": "ani",
"operator": "matches",
"value": "tel:+81123456789"
}
]
}
]
}