Legacy Dev Forum Posts

 View Only

Sign Up

Cannot filter conversations by agent

  • 1.  Cannot filter conversations by agent

    Posted 06-05-2025 18:12

    matthew | 2017-06-20 14:26:15 UTC | #1

    Hi, having trouble with a user based filter sending to /api/v2/analytics/conversations/details/query :

    { "interval": "2017-06-19T23:00:00.000Z/2017-06-20T23:00:00.000Z", "order": "asc", "orderBy": "conversationStart", "paging": { "pageSize": 25, "pageNumber": 1 }, "conversationFilters": [ { "type": "and", "predicates": [ { "type": "dimension", "dimension": "userId", "operator": "matches", "value": "7b5f1f47-70f9-41b2-b023-e036461c7971" } ] } ] }

    I get the error :

    Dimension userId is not valid in context CONVERSATION

    I would have hoped this would be possible to filter conversations by a particular agent. Any workaround?

    thanks.

    Matthew


    tim.smith | 2017-06-20 14:34:40 UTC | #2

    The user ID isn't a property of the conversation. You need to use segment filters. For more information, see the Conversation Detail Query article.


    matthew | 2017-06-20 14:39:16 UTC | #3

    Great, thanks for pointing me in the right direction!


    system | 2017-07-21 14:39:54 UTC | #4

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