Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Delete recordings using a Bulk Recording Job for a specific user.

    Posted 01-27-2025 08:54
    No replies, thread closed.

    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
    ------------------------------


  • 2.  RE: Delete recordings using a Bulk Recording Job for a specific user.

    Posted 01-27-2025 09:46
    No replies, thread closed.

    Hi Adesh,

    I did find a similar question on the developer forum: Bulk Delete Recordings for specific users, but if you need further clarification, certainly open a new thread on the Genesys Cloud Developer Forum.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Delete recordings using a Bulk Recording Job for a specific user.
    Best Answer

    Posted 01-28-2025 09:48
    No replies, thread closed.

    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
    ------------------------------