Direct link URL to incident or request item

zed
Kilo Contributor

I know how to create direct links to an incident or a request item using the URL navigation format:

https://xxx.service-now.com/nav_to.do?uri=incident.do?sysparm_query=number=INCXXXX for incidents

https://xxx.service-now.com/nav_to.do?uri=sc_req_item.do?sysparm_query=number=RITMXXXX for request items

 

However, is there a way to use a single URL that will take you to the incident or request item based on the number?

 

The scenario is this: I have an application that allows you to link a field value to a URL template so you can link directly into another app (in this case Service-Now). The problem I'm running into is that the ID could either be an incident or a request item. Since the URL has to be predefined I cannot change it based on the ID type. I need a URL within service now that will take either an incident or request item number and open the right item.

 

Hopefully that makes sense.

 

Thanks.

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi Zack,



Incident and RITM both roll up to Task table, So make ur generic url like this



https://xxx.service-now.com/task.do?sys_id=<Sys id of your RITM or Incident>



If you dont have the sys_id then



https://xxx.service-now.com/nav_to.do?uri=task.do?sysparm_query=number=



Hope this helps


-Anurag

View solution in original post

12 REPLIES 12

Good morning,   Thank you for your reply.   I tried this out just now using our instance URL and its taking me to the login page, but not redirecting me after login.



The goal is to not have the self service user end up within the framework of ServiceNow but only to login and fill out the record producer.  



Is there a script or something I need to create in addition?


Hi,

 

i have a requirement like when ever i open a incident record the url of the record should be 

https://xxx.service-now.com/INC000000001 where i opened form of incident number=INC000000001.

could you pls gide.

Thank you.

This used to work for me but seems after updating to Utah this no longer works.  Is there a new format for this now?  Thank you for the reply!

Matt

This process has worked for me for several years but recently has started taking a long time for the link to open the RITM/INC/SCTASK items.  Anyone else experiencing this and is there a new method for opening tickets based on their number?  Thank you.