- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 04:05 AM
Hi All,
I have a requirement, based on user subregion ess portal page will appear i.e when we click on a UI button first it check the user subregion and redirects to that specific ESS portal page. How to do it please any one help me.
Regards,
Nagaraju
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 04:16 AM
From UI Action, you can always query server side GlideRecord script -
var userId = gs.getUserID();
var grUser = new GlideRecord('sys_user');
if(grUser.get(userId)){
var userRegion = grUser.region;
//you can use userRegion here
}
An example UI action with gliderecord query in out of box -
Mark if it is helpful or correct, feedback is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 04:16 AM
From UI Action, you can always query server side GlideRecord script -
var userId = gs.getUserID();
var grUser = new GlideRecord('sys_user');
if(grUser.get(userId)){
var userRegion = grUser.region;
//you can use userRegion here
}
An example UI action with gliderecord query in out of box -
Mark if it is helpful or correct, feedback is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 04:35 AM
Hi srikanth,
It is working fine.Thank you so much for your information.
Regards,
Nagaraju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 04:38 AM
Its great to hear that its working, thanks for your feedback. Happy Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 06:07 AM
Hi Srikanth,
Thanks a lot once again.
Regards,
Nagaraju