Short & Friendly URL to Navigate to Request

David Holley
Kilo Explorer

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.  

3 REPLIES 3

Sagar Pagar
Tera Patron

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

The world works with ServiceNow

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi David,

Not sure if this will provide the requested feature but ServiceNow has Tiny URL plugin.

https://docs.servicenow.com/en-US/bundle/sandiego-platform-user-interface/page/use/navigation/task/t...

Allen Andreas
Administrator
Administrator

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!