upapan.v | 2024-07-17 16:06:09 UTC | #1
Hi there,
I have created a callback via POST/api/v2/conversations/callbacks with this body
{
"queueId": "GUID",
"callbackScheduledTime": "2024-07-18T04:52:19.001Z",
"countryCode": "+61",
"validateCallbackNumbers": false,
"callbackNumbers": [
"+6112345567"
],
"callbackUserName": "[12345] Firstname Surname",
"data": {
"email": "test-email@test.com",
"serialNumber": "12345",
"issueDescription": "I have an issue"
}
}
Then, I'd like to be able to query callbacks specifically created with this callbackUserName. I am trying to use the POST /api/v2/analytics/conversations/details/query API with this body
{
"order": "desc",
"orderBy": "conversationStart",
"interval": "2024-07-01T14:00:00.000Z/2024-07-30T14:00:00.000Z",
"segmentFilters": [
{
"type": "and",
"predicates": [
{
"dimension": "mediaType",
"value": "callback"
},
{
"dimension": "segmentType",
"value": "Scheduled"
},
{
"dimension": "segmentEnd",
"operator": "notExists"
},
{
"dimension": "queueId",
"value": "GUID"
},
{
"dimension": "participantName",
"value": "[12345] Firstname Surname"
}
]
}
]
}
The issue appears to be the final predicate on participantName. Without it, I can get the desired conversation back, but I can't find any way to filter based on the participantName, even though I can see it in the response itself. How can I filter based on the participantName or something related to the callbackUserName in the original callback creation? Many thanks
system | 2024-08-16 16:06:30 UTC | #2
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 27292