Is there any widget api to fetch the Suggested Answer Date

I have been looking for an api which can help me fetching forum suggested answer date, I guess I could find by passing 'verified-answer' in forum reply

$core_v2_forumReply.List($forumThread.Id, "%{ ContentIds : $forumThread.ContentId, ForumId = $forumThread.ForumId, ForumReplyQueryType : 'verified-answers',PageIndex = 0, PageSize = 1 }")

but I am not able to fetch.

  • Former Member
    0 Former Member

    If you're looking for suggested answers, you need ForumReplyQueryType = 'non-verified-answers'.

    You also should remember to include a SortBy and SortOrder to ensure you get the 1 value you expect.

    Also ensure that your options are presented consistently in Key = value format. It may be clearer to construct the options dictionary explicitly like so:

    #set($query = "%{}")
    $query.Add("Key1", "value1")
    $query.Add("Key2", "value2")
    $query.Add("Key3", "value3")
    #set($response = $core_v2_forumReply.List($forumThread.Id, $query))