In the query.conversation_query object you'll need to add a segmentFilters object and specify the userId that you want to filter on, like this:
{
"conversationQuery": {
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"dimension": "userId",
"operator": "matches",
"value": "1c1ca8b5-8740-481e-92f5-cf23870284bd"
}
]
}
]
}
}
There are several filter types and they allow you to build complex and/or selection logic. You can read all about filter here: https://developer.genesys.cloud/analyticsdatamanagement/analytics/detail/conversation-query#filter
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com------------------------------
Original Message:
Sent: 01-27-2025 08:54
From: Adesh Jadhav
Subject: Delete recordings using a Bulk Recording Job for a specific user.
Hello Team,
I'm trying to delete recordings using the operation defined in "Bulk operations on recordings".
I was able to delete recordings using a specific interval, but I'm not sure how to delete recordings for a specific user. Can this be achieved using the conversation query filter, or is there an alternate solution?
query = PureCloudPlatformClientV2.RecordingJobsQuery()
query.action = "DELETE"
query.action_date = "2025-01-27T12:15:00.000Z"
# Comment out integration id if using DELETE or ARCHIVE
# query.integration_id = ""
query.conversation_query = {
"interval": "2025-01-23T00:00:00.000Z/2025-01-26T00:00:00.000Z",
"order": "asc",
"orderBy": "conversationStart"
#API/Integrations
#QualityManagement
#Reporting/Analytics
------------------------------
Adesh Jadhav
NA
------------------------------