
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 07:29 AM
Hi,
I'm quit new to the scoped application thing .. . It looks like I can not use "var language =gs.getUser().getLanguage();" within a scoped business rule to get the language of the user logged in.
How to adjust?
Thank you!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 07:42 AM
Hi Vemffm,
There is some issue in getting user's language in scoped app using above code.
Can you try this in your business rule and check:
var session = gs.getSession();
var language = session.getLanguage();
gs.info(language);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 07:42 AM
Hi Vemffm,
There is some issue in getting user's language in scoped app using above code.
Can you try this in your business rule and check:
var session = gs.getSession();
var language = session.getLanguage();
gs.info(language);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 08:26 AM
Hi Vemffm,
Can you also mark my answer as correct, helpful if you were able to achieve your requirement. This helps in removing this question from unanswered list.
Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader