Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Knowledge articles language filter

SimenKnudsen
Tera Contributor

When creating knowledge articles in ServiceNow, you can select the language if multiple languages are configured in the system. In Norway, some users prefer articles in Norwegian, while others prefer English. However, the Employee Center automatically filters articles based on the user's system language. As a result, users with English as their system language cannot view Norwegian knowledge articles, even if they understand Norwegian and can read them without issue. Is there a system property to disable this language filtering?
Any other workarounds to try?
Thanks

3 REPLIES 3

Rafael Batistot
Kilo Patron

Hi @SimenKnudsen 

 

This support article might help you 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696617

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.

M Iftikhar
Tera Sage

@SimenKnudsen 

There isn’t a system property to disable the automatic language-based filtering in Employee Center. However, you can customize the behavior by cloning and modifying the “KB Category Page” widget.

In the cloned widget’s server script, after the line

data.items = $sp.getKBCategoryArticleSummaries(...);

replace the filtering logic with code that returns all articles, regardless of language. For example:

var articles = [];
for (var i in data.items) {
    var articleId = data.items[i].sys_id;
    var grKb = new GlideRecord('kb_knowledge');
    grKb.addQuery('sys_id', articleId);
    // Remove language filter so all languages are included
    grKb.query();

    if (grKb.hasNext()) {
        articles.push(data.items[i]);
    }
}
data.items = articles;

Then, use your cloned widget in place of the original KB Category Page on the kb_view2 page.
This way, knowledge articles in any language will be visible to users, regardless of their system language setting.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696617 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

SimenKnudsen
Tera Contributor

I found that the most effective solution was to make the field inactive, which prevents the query from filtering by language.