documentation about SNC.KnowledgeHelper().showFlaggedComments()
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 12:41 AM - edited 02-15-2023 12:44 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 12:46 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 01:08 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader