- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2021 07:37 AM
Can someone please give me advice on how to implement a language filter on the backend in order to show only those Knowledge articles to end user that are in his set language?
I mean if the user's language set in his profile in the backend is English, only English KB articles will be shown to him on Service Portal.
As mentioned, this needs to be implemented in the backend.
Thank you.
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2021 05:29 AM
So the second picture is similar to the ootb "Create Incident" Record Producer,
I've just tried it on one of my instances and what I'm about to propose works for this specific search use-case as it's only filtering against the search from the Record Producer and in theory nothing else, however further testing would be required to make sure it doesn't restrict other places just to be 100% safe,
Searching before anything changed (shows all results):
Find the "Search Context" for your Record Producer, my example looks like this:
Go into the related list of "Record Producer Configurations" specifically into the record of your RP (mine is "Create Incident", so I'd imagine yours based on your screenshot is "Report an Issue"):
* You won't have a filter configuration listed necessarily, you'll need to create one like the following:
* As you create the new record, the script won't be editable so just "save" then add the line I have highlighted
Test your search on the Record Producer and it should work, example with an English user:
example with a French user (as I have a French Article related to the English source):
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2022 01:38 AM
Hi
I would like to show English articles to user when there is no translated article present in his language. How do I set this filter in Filter configuration. Could you pls help.
Thanks a lot!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2022 02:53 AM
If I understand your question correctly, you could probably do that with an IF statement upon the result if there's no result found (creating another small loop), or you could potentially add an OR condition in the query. I'd opt for the former because otherwise you'd see English regardless,
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2022 03:38 AM
I have the same requirement as when user enters a keyword the contextual search results must sow in user's language and if there is no article present in user's language then the results hsould be shown in English as default. Were you able to solve this with some solution. Please let me know.
Thanks,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2022 04:12 AM