Legacy Dev Forum Posts

 View Only

Sign Up

Different results between UI and API for group voicemail interactions by date range

  • 1.  Different results between UI and API for group voicemail interactions by date range

    Posted 06-05-2025 18:03

    angelolung | 2023-09-01 03:53:29 UTC | #1

    Hello.

    My client is using groups to receive voicemails. I want to create a node js program with SDK to get all voicemails to all groups. Details are shown as follows:

    query: "/api/v2/analytics/conversations/details/query"

    params: {"order":"desc","orderBy":"conversationStart","paging":{"pageSize":50,"pageNumber":1},"segmentFilters":[{"type":"or","predicates":[{"dimension":"direction","value":"inbound"},{"dimension":"direction","value":"outbound"}]},{"type":"or","clauses":[{"type":"and","predicates":[{"dimension":"purpose","operator":"matches","value":"voicemail"}]}]}],"conversationFilters":[],"evaluationFilters":[],"surveyFilters":[],"interval":"2023-08-30T16:00:00.000Z/2023-08-31T16:00:00.000Z"}

    On the UI page and interaction in purecloud, it showed 11 interaction.

    However, on the node js program with oauth and same query, it only return 1 interactions?

    Why are there differences and how can I get all 11 interactions as purecloud?

    Is it related to authentication?

    Thank you.


    Declan_ginty | 2023-09-04 09:56:08 UTC | #2

    Hi,

    If you feel you query is correct and you are getting incorrect data, please open a ticket with care to investigate.

    Regards, Declan


    angelolung | 2023-09-05 01:30:34 UTC | #3

    I found that that is the problem of premissions of oauth. Thanks for your suggestion.


    system | 2023-10-06 01:31:08 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: 21798