Knowledge Related Articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 06:01 AM
Hello team,
We have widget: Knowledge Related Articles and this is calling another widget: Knowledge List Widget Template
So in the template view we can see english and other language articles as well for display. But we want to see only user language articles. Depending on the user language only those language articles should be seen. Any idea on this?
I tried this in the list view widget: data.languagePreference = $sp.getValue('u_preferred_language');
and In the main widget I tried :
var user = gs.getUser();
var language = user.getLanguage();
var article = new GlideRecord('kb_knowledge');
article.get(articleId);
article.setDisplayLanguage('Language');
gs.print(article.getDisplayValue());
}
This is the function in knowledge related articles:
TIA 🙂