Chris,
The Analytics Query Builder tool that is part of our Developer Tools and runs live against your Genesys Cloud is a great tool to play around with queries to see what you can select. There are numerous Segment Filters that you can query against and 'addressFrom' and 'subject' are both items you can query on. The filters use "and" and "or" expressions so that you can search for either, or, or both fields. Here is what a segmentFilter might look like that search for a specific email address "or" subject.
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "addressFrom",
"operator": "matches",
"value": "jim.crespino@genesys.com"
},
{
"type": "dimension",
"dimension": "subject",
"operator": "matches",
"value": "This is a test email subject"
}
]
}
]
Note, you can combine those segment filters with the queue filters and any other filters that you want to build the appropriate query.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com------------------------------
Original Message:
Sent: 09-01-2022 11:01
From: Chris Peters
Subject: Clear emails in the queue.
Hi Jim,
Is there any way to also search on an email address or subject line only and just delete/disconnect those? We have thousands of spam emails in one of our queues that we would like to purge.
------------------------------
Chris Peters
Cox Automotive Corporate Services, LLC
Original Message:
Sent: 12-27-2019 11:23
From: Jim Crespino
Subject: Clear emails in the queue.
Teja,
This is not anything "official" but I have written a script that will run in the Code Edit of PureCloud's Developer Tools (https://developer.mypurecloud.com/developer-tools/#/codeeditor) that will "disconnect" (a.k.a. delete) conversations in a queue. You can get the code from my personal GitHub repository here: https://github.com/crespino4/PureCloudScripts/blob/master/DeleteQueuedInteractions.js
There are a few caveats to using it and your mileage may vary:
- At the top of the script are two variables, 'queueName' and 'dateRange' which are really the only two things in the code you will have to change. You should change the values between the quotes to match your need. The currently checked in script deletes from a queue named 'AppFoundry' and a date range between December 1 2019 and January 1 2020.
- It performs an analytics query to get a batch of 100 queued conversations at a time, so if you have more than a 100 you will have to manually press the 'run' button to run the script until there are no more conversations for that date range.
- This deletes ALL conversations in a given queue. The analytics query could be modified to delete certain media types, etc. You can use the Analytics Query Builder in the Developer Tools to generate a new query body for your needs.
- There isn't much in the way of error handling as I just use this for quick and dirty clean-up of interactions that I generate when testing use cases.
Here is a screenshot of what it looks like in the Developer Tools (click on the image to see it in a better resolution):
Good luck.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com
Original Message:
Sent: 12-26-2019 10:49
From: George Ganahl
Subject: Clear emails in the queue.
I doubt Care/Support can help with it. I was going to suggest you take a look at the thread on the Developer forum as well. That was something a former internal employee created, but using GO. I started to create my own version of the script in Node.js, but never got around to much. Nothing useful..
------------------------------
George Ganahl GCP (PureCloud) ICCE
Principal Technology Consultant
Genesys
Original Message:
Sent: 12-25-2019 08:28
From: Teja Darbha
Subject: Clear emails in the queue.
Thank you for the suggestions. I'll look in to them.
------------------------------
Teja Darbha
Jathwa Technology Solution
teja.darbha@jathwa.com
Riyadh Saudi Arabia
Original Message:
Sent: 12-25-2019 00:48
From: Paulo Mesquita
Subject: Clear emails in the queue.
I am not sure if the PureCloud support can help with this.
Maybe they have an app or a script like this one to disconnect email interactions:
https://developer.mypurecloud.com/blog/2018-02-07-disconnecting-queued-interactions/
------------------------------
Paulo Mesquita
Spark NZ Trading
Original Message:
Sent: 12-23-2019 15:39
From: Robert Wakefield-Carl
Subject: Clear emails in the queue.
I looked through the interface and API and came up with nothing. The only possibility is to use the queue observation in the Analytics API to get a listing of all the conversations and then use PostMan to individually or in bulk 100 at a time.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.com
https://www.Avtex.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 12-23-2019 03:36
From: Teja Darbha
Subject: Clear emails in the queue.
Hello All
I want to know if there is any way to clear the emails in the queue, i.e., there is a customer with multiple flows and multiple queues and each queue is handled by different agent.
Now, these were set up long back and have been inactive for long time. Today if i add some one the queue, he is seeing all the emails in the queue which were waiting since may be 1000+ hours. i know this behavior is correct and normal.
Is there any way i could clear the emails waiting in the queue. or what i have done is i created another queue and changed the email routing to this flow. In this case i cannot delete the old queue with an error message - Error deleting the queue( i guess because there are so many emails waiting in this queue)
Is there any way to overcome this or any workaround solution to just clear the interactions in queue.
Thanks in advance
#emails #queue #Routing #purecloudemails #PureCloudACD #Contactcenteradministration
#ArchitectureandDesign
#DigitalChannels
#Implementation
#PlatformAdministration
#Roadmap/NewFeatures
#Routing(ACD/IVR)
------------------------------
Teja Darbha
Jathwa Technology Solutions
teja.darbha@jathwa.com
Riyadh Saudi Arabia
------------------------------