How to add hyperlink into info message

vinod6
Tera Contributor

a hyperlink that redirects you to incident list view can be defined in this business rule. link is not getting the incidents

 

vinod6_0-1701703675101.png

 

Showing below one

 

vinod6_1-1701703749524.png

I need a incident number for example show below one

vinod6_2-1701703816471.png

Please help any one . and this is dev instance that's the region i given the dev url but move this one to prod it showing error because prod url  is different  which propriety have to use 

 

Please share me  

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @vinod6 

 

Modify your 3rd line with mine :-

 

 

var link = "<a href='https://dev189754.service-now.com/now/nav/incident_list.do'>" + current.number +"</a>"

 

 

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

Jack Littlewort
Giga Guru

Hi @vinod6 ,

 

It would be best practise not to hard code the URL so that if you code moves to another instance, for example from a development environment to the test environment then it will still work.

 

The below code on line 3 would be suitable

 

 

var link = "<a href='/now/nav/incident_list.do'>" + current.number + "</a>"