Legacy Dev Forum Posts

 View Only

Sign Up

Conversation Detail Query - Can't Filter by dnis

  • 1.  Conversation Detail Query - Can't Filter by dnis

    Posted 06-05-2025 18:16

    Brian_Higgins | 2020-03-26 14:53:47 UTC | #1

    Using the analytics query builder I made this query

    {
     "interval": "2020-03-26T00:00:00.000Z/2020-03-27T00:00:00.000Z",
     "order": "asc",
     "orderBy": "conversationStart",
     "paging": {
      "pageSize": 25,
      "pageNumber": 1
     },
     "conversationFilters": [
      {
       "type": "or",
       "predicates": [
        {
         "type": "dimension",
         "dimension": "dnis",
         "operator": "matches",
         "value": "tel:+35361485741"
        }
       ]
      }
     ]
    }

    But get this error response....

    {
      "readyState": 4,
      "responseText": "{\"message\":\"Value [dnis] is not valid for field type [ConversationDetailDimension]. Allowable values are: conversationEnd, conversationId, divisionId, mediaStatsMinConversationMos, mediaStatsMinConversationRFactor, originatingDirection\",\"code\":\"invalid.value\",\"status\":400}",
      "responseJSON": {
        "message": "Value [dnis] is not valid for field type [ConversationDetailDimension]. Allowable values are: conversationEnd, conversationId, divisionId, mediaStatsMinConversationMos, mediaStatsMinConversationRFactor, originatingDirection",
        "code": "invalid.value",
        "status": 400
      },
      "status": 400,
      "statusText": "Bad Request"
    }

    According to this link, it should be a searchable dimension

    https://developer.mypurecloud.com/api/rest/v2/analytics/dimensions.html#conversation_detail_dimensions

    Can you help me understand what is going wrong? Perhaps I need to formulate the query differently.


    tim.smith | 2020-03-26 15:09:43 UTC | #2

    See the request documentation for POST /api/v2/analytics/conversations/details/query. The dnis dimension is only valid for segment filters.


    system | 2020-04-26 15:09:44 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: 7411