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

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

Thank you! That's exactly what I needed.


Hello, is there a way to point to a new record producer as well?   We want to link from SharePoint to a record producer.   If they aren't logged on, they would be taken to the okta login page and then redirected to the new form to create a record.



Any idea?


Hi Carl,



here you go



https://xxx.service-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=<SYSID OF record producer>


-Anurag