Mahmoud_Salameh | 2020-04-04 18:46:34 UTC | #1
I'm trying to Disconnect an interaction which is waiting time more than 5 hours in queue name "test-interaction" or message type = WhatsApp
here is the query I'm using to fetch the conversations (https://api.mypurecloud.de/api/v2/analytics/conversations/details/query) :
{ "interval": "2020-04-03T21:00:00.000Z/2020-04-04T21:00:00.000Z", "order": "asc", "orderBy": "conversationStart", "paging": { "pageSize": 25, "pageNumber": 1 }, "segmentFilters": [ { "type": "and", "predicates": [ { "type": "dimension", "dimension": "segmentType", "operator": "matches", "value": "interact" }, { "type": "dimension", "dimension": "messageType", "operator": "matches", "value": "whatsapp" }, { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "208f7256-7dd1-4e19-bcbc-fb6c1cf965db" }, { "type": "dimension", "dimension": "segmentEnd", "operator": "notExists" } ] } ] }
but how I can fetch those which have a waiting time more than 5 hours ? and is there a way to disconnect them all at once or should I disconnect them one by one using (https://api.mypurecloud.de/api/v2/conversations/{conversationId}/disconnect) ?
tim.smith | 2020-04-06 15:15:01 UTC | #2
You can add a segment metric filter predicate on tSegmentDuration.
system | 2020-05-07 15:16:51 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7479