- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 02:29 AM
Is there any way to get the ServiceNow URL in a client script? I tried: sysparmQuery = g_form.getParameter('sysparm_query'); But it didn’t work as expected. Is there another way to get the value of `classification` from the URL? For example, the URL:
1.
2. https://dev123408.service-now.com/_to_do_comment.do?sysparm_query=_computer_information%3D__ENC__ZjZ...
I need to get the value of `classification`.
please help me,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:36 AM
did you print what came in alert using this?
alert(top.location.href);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:36 AM
did you print what came in alert using this?
alert(top.location.href);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader