Short & Friendly URL to Navigate to Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2022 11:24 AM
Is there a short & friendly URL that will take a user to a specific request? For example, ADO uses this pattern https://[domain name]/[organization]/[project]/_workitems/edit/[work item number] . I need something similar for Service Now as I need to create hyperlinks to requests that I have exported to Excel. I obviously have the request number, but need the URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2022 11:35 AM
Hi,
You can try this to create a simple URL with request number.
var instance_url = gs.getProperty('glide.servlet.uri');
var table = current.getTableName();
var strClass = current.sys_class_name;
var number = current.number;
var sysID = current.sys_id;
var requestURL = instance_url + strClass + '.do?sysparm_query=number='+ number;
gs.info("request URL - " + requestURL);
Thanks,
Sagra Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2022 05:44 PM
Hi David,
Not sure if this will provide the requested feature but ServiceNow has Tiny URL plugin.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2022 06:16 PM
Hello,
It depends on more information from you. Your post is a bit confusing as it initially seemed like you wanted to convert some sort of long URL to a shortened form bit.ly type URL...then as your post continued, it changed to seem like you just wanted the "static" part of the URL and you'd take care of the "dynamic" part (so essentially the main part of the URL that stays the same is what you were looking for).
For more information, we don't know if you're trying to navigate the user to the portal view or the back-end fulfiller view (as there's different interfaces).
This leads to the types of responses where one replies with the latter part of what I spoke about and the other reply covers the former, haha.
Let us know more information, if you don't mind.
Please mark reply as Helpful, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!