- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2021 11:16 PM
Hi Team,
I'm having two views let's say 'x' and 'y'.
if the page I'm opening is portal then I want to force view x and if it's standard UI (backend) then I wanted to show view y.
For this to happen I'm writing a script in the view there I want to get the URL of the standard UI in the server side code??
Thanks In Advance,
Balaraju KB
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2021 11:19 PM
Hi,
this line should give you the URL in server side
var url = gs.action.getGlideURI().toString();
Regards
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-07-2021 12:04 AM
Hi
I read the conversion between you and Ankur. As you are in Custom Scope
Can you try to add below Cross scope in system and then use
gs.action.getGlideURI().toString();
1. Mention your scope instead of Prasad
2.
Let me know if it works
Thank you
Prasad