with the URL am i able to trace the incident number ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 08:34 PM
in service now if i create a Chrome plugin to just paste the Incident and navigating to the correct incident is that possible ?
I see the url is having the encoded values so I am not able to find which url for which incident. need help here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 08:46 PM
Hi @bharathsco
what exactly do you mean with "just paste the Incident"? What do you want to paste? Any ID or number?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:24 PM
Hi @Maik Skoddow ,
Let me elaborate the query.
Generally i see for any incident record there will an incident number. example INC4545654.
Now If I want to look at the particular record I generally use the "Copy URL" functionality from the servicenow tool.
When we use that we see that the copied URL will look like
https://service.domain/entry/87884f46c3cff95c0b886610a00131ec
Now I am writing a plugin in chrome to just paste INC4545654 and click navigate which i expect the browser to navigate to the record https://service.domain/entry/87884f46c3cff95c0b886610a00131ec . IS there a way to do it.
Consider if the record url is https://service.domain/entry/INC4545654 I can request
window.location.href = window.location.href + "INC4545654" i could land in the above record.
But since the url is having some encoded value in suffix and I am not sure of what encoding technique servicenow is using I am not able to convert "INC4545654" to "87884f46c3cff95c0b886610a00131ec"
Can someone suggest me what encoding technique they generally use to match the URL with the incident number?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:40 PM
Hi @bharathsco
no, there is no OOTB functionality for that, as record numbers are not unique enough. Only Sys IDs (that 32 characters long IDs) are unique.
However, you can implement such a forwarder. See https://snprotips.com/blog/2021/1/20/processors-srapis-and-how-to-run-a-script-and-redirect-a-user-f... for an inspiration.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:43 PM
Hello @bharathsco ,
Below is the breakdown of one of the URL's use to navigate the INC record, you can refer to that.
- For the incident you can use this link as well "https://xxx.service-now.com/nav_to.do?uri=incident.do?sysparm_query=number=INCXXX" and put your instance name instead of xxx and at the end add your actual incident number in place of INCXXX.
So see if the above URL helps you or not, since with the help of above URL you can directly go to the INC record once you add the INC number at the end and your instance name is fix so that can be done once you added the name.
Let me know your views on this and Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket