Incident number as link

Sharath807
Tera Contributor

Hi all, How can i get this current.number (incident number) as http link in output.

Screenshot (198)_LI.jpg

8 REPLIES 8

Sandeep Rajput
Tera Patron
Tera Patron

@Sharath807 Try the following.

At line number 5, replace current.number with recordURL as follows.

var recordURL=gs.getProperty('glide.servlet.uri') +"nav_to.do?uri="+current.getLink(false)

 

@Sandeep Rajput hi its showing output as actual link...Actually i need this link as number (INCxxxxxx)... when i click this number it should navigate

KB18
Tera Guru
Tera Guru

Dear @Sharath807 

 

Please use current.number.toString() in your script.

Please hit the thumb Icon and mark as correct in case I help you with your query!!!
- Kailas

KB18
Tera Guru
Tera Guru

Hi @Sharath807 

Please use the below link for your reference.

How to add hyperlink into info message - Support and Troubleshooting (servicenow.com)

Please hit the thumb Icon and mark as correct in case I help you with your query!!!
- Kailas