documentation about SNC.KnowledgeHelper().showFlaggedComments()

prasanna11
Mega Guru
Since this is an SNC. script i understand we basically do not have any visibility into this. But can anyone shed a light on how this function determines to show or not to show flagged comments for an article? The below script confirmed, not even for one active article the function returns false.
 
var _knowledgeHelper = new SNC.KnowledgeHelper();
var gr = new GlideRecord("kb_knowledge");
gr.addActiveQuery();
gr.query();
while(gr.next()){
if(!_knowledgeHelper.showFlaggedComments(gr)){
    gs.info(gr.number+' returns '+_knowledgeHelper.showFlaggedComments(gr));
break;
}
}
2 REPLIES 2

SatyakiBose
Mega Sage

Hello @prasanna11 

Since this script is not exposed to customers, I would recommend you to raise a support case to get more clarity on what query is passed for the flagged comments.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@prasanna11 

As suggested by Satyaki you can try raising a HI ticket for this.

But I doubt ServiceNow will help you in understanding/sharing the script/logic behind this as it comes from platform level.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader