Seeking validation for a possible bug - Getting the TotalCount of Verified Answers for an Author in a Group (and workaround)

Verint version 12.0.5


Hi all,

I'm trying to get a Count of Verified Answers for a particular Author in a specified Group via an Automation.  The API supports this, however it returns the wrong answer.

My test environment has one Group, with a few questions and some replies.

When I query for the TotalCount of Verified Answers for a given AuthorId and GroupId, I get a result of 1 (there should be 5)

If I remove the GroupId param I get the expected TotalCount of 5 (again, all of the content lives in this single Group).

Oddly enough, I did find a workaround.  If you set the PageSize to 2, the TotalCount is now correct.

It's an odd bug, but I wanted to post it in case other people ran into the same thing.

Also, I saw that this method had another bug related to the GroupId param, TE-17231, mentioned in  RE: Using core_v2_forumReply.List to list replies by a user in a particular group or forum , which was fixed in 12.112.0.411.1.10.

Let me know if you think I am missing something here.

Thanks.



added Verint version
[edited by: robert.hanson at 7:03 PM (GMT 0) on Tue, Nov 15 2022]
Parents
  • We're seeing something similar (v12.1.2) with the core_v2_comments.List API. I'm after a user's total comments across the site.

    #set($t = true)
    
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeChildren = $t, IncludeSubContainers = $t }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeSubContainers = $t }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeChildren = $t, IncludeSubContainers = $t, ContainerId = $core_v2_utility.ParseGuid('4273ebee-ba1a-40fa-8856-09b6a403bbb6') }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeSubContainers = $t, ContainerId = $core_v2_utility.ParseGuid('4273ebee-ba1a-40fa-8856-09b6a403bbb6') }").TotalCount

    The GUID there is the root container for the site, so you'd need to change this for your instance.

    Adding a new comment doesn't end up changing the value returned, nor does deleting a comment Thinking

    I've raised a case for this issue.

Reply
  • We're seeing something similar (v12.1.2) with the core_v2_comments.List API. I'm after a user's total comments across the site.

    #set($t = true)
    
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeChildren = $t, IncludeSubContainers = $t }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeSubContainers = $t }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeChildren = $t, IncludeSubContainers = $t, ContainerId = $core_v2_utility.ParseGuid('4273ebee-ba1a-40fa-8856-09b6a403bbb6') }").TotalCount
    -
    $core_v2_comments.List("%{ UserId = $core_v2_user.Accessing.Id, IncludeSubContainers = $t, ContainerId = $core_v2_utility.ParseGuid('4273ebee-ba1a-40fa-8856-09b6a403bbb6') }").TotalCount

    The GUID there is the root container for the site, so you'd need to change this for your instance.

    Adding a new comment doesn't end up changing the value returned, nor does deleting a comment Thinking

    I've raised a case for this issue.

Children