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.