The Zurich release has arrived! Interested in new features and functionalities? Click here for more

with the URL am i able to trace the incident number ?

bharathsco
Giga Contributor

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.

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi @bharathsco 

what exactly do you mean with "just paste the Incident"? What do you want to paste? Any ID or number?

Maik

bharathsco
Giga Contributor

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? 

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

Aniket Chavan
Tera Sage
Tera Sage

Hello @bharathsco ,

 

Below is the breakdown of one of the URL's use to navigate the INC record, you can refer to that.

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