Chris_Carr | 2021-11-10 20:03:00 UTC | #1
Hi,
I am using the the /api/v2/analytics/conversations/details/query below and wanted to know if I am able to to check all queues and not only match each queue individually.
{ "interval": "2019-09-05T04:00:00.000Z/2019-09-06T04:00:00.000Z", "order": "asc", "orderBy": "conversationStart", "paging": { "pageSize": 25, "pageNumber": 1 }, "segmentFilters": [{ "type": "or", "clauses": [{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "ani", "operator": "matches", "value": "insertAniHere" }] }, { "type": "and", "predicates": [{ "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "callback" }, { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "insertQueueIdHere" } ] } ] }], "conversationFilters": [{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "conversationEnd", "operator": "notExists" }] }] }
I have tried using the operator "exists" with a value null but it does not appear to be working.
Here is the new request below:
{ "interval": "2021-11-10T00:00:00.000Z/2021-11-11T00:00:00.000Z", "order": "asc", "orderBy": "conversationStart", "paging": { "pageSize": 25, "pageNumber": 1 }, "segmentFilters": [{ "type": "or", "clauses": [{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "ani", "operator": "matches", "value": "+447513876890" }] }, { "type": "and", "predicates": [{ "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "callback" }, { "type": "dimension", "dimension": "queueId", "operator": "exists", "value": null } ] } ] }], "conversationFilters": [{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "conversationEnd", "operator": "notExists" }] }] }
This is not working as expected.
Thank you.
system | 2021-12-10 20:03:14 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: 12611