Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Post Request Body for Multiple queue and MediaType=Voice

    Posted 04-09-2021 17:36
    Hello All,

     As of now, I am sending post request using below Header Parameter for one QueueID and MediaType=voice. Please help me, How we can build/modify the same filter to Send request with multiple QueueID and MediType=voice. 

    {
    "filter": {
    "type""and",
    "predicates": [
    {
    "type""dimension",
    "dimension""queueId",
    "operator""matches",
    "value""20f15926-ea1d-47b0-a6e5-4be482976dad"
    },
    {
        "type""dimension",
        "dimension""mediaType",
        "operator""matches",
        "value""voice"
     }
    ]
    },

    "metrics": [
    "oWaiting"
    ]
    }

    #Ask Me Anything (AMA)
    #Integrations
    #Reporting/Analytics

    ------------------------------
    Rajnish Roy
    Thermo Fisher Scientific Inc
    ------------------------------


  • 2.  RE: Post Request Body for Multiple queue and MediaType=Voice

    Posted 04-09-2021 20:36
    Hi Rajnish

    If you jump over to the Developer Centre you can use the query builder that's a great help for this type of thing:

    https://developer.mypurecloud.com/developer-tools/#/analytics-query-builder

    In the meantime though try something like this replace XXXXXXXXXXXXXXX with your actual Queue IDs)::

    {
     "filter": {
      "type": "and",
      "clauses": [
       {
        "type": "or",
        "predicates": [
         {
          "type": "dimension",
          "dimension": "queueId",
          "operator": "matches",
          "value": "XXXXXXXXXXXXXXX"
         },
         {
          "type": "dimension",
          "dimension": "queueId",
          "operator": "matches",
          "value": "XXXXXXXXXXXXXXX"
         }
        ]
       },
       {
        "type": "and",
        "predicates": [
         {
          "type": "dimension",
          "dimension": "mediaType",
          "operator": "matches",
          "value": "voice"
         }
        ]
       }
      ]
     },
     "metrics": [
      "oWaiting"
     ]
    }




    ------------------------------
    Vaun McCarthy
    NTT New Zealand Limited
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources