How to provide link the service portal for take me back to the incident email notification script.

Shweta Kasbe1
Tera Contributor

How to provide link the service portal for take me back to the incident email notification script.

I tried this link:-"https://dev12455.service-now.com/sp?id=form&table=incident&sys_id=-1 ";

But when I provide this link it is taking me back to that previous incident. Pls guide me in this

find_real_file.png

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey Shweta,

Try this:

 

var url =  '<a href =' + gs.getProperty('instance_name') + '/sp?id=form&table=incident&sys_id=' + sys_id + '>Click Here</a>';
Best Regards
Aman Kumar

View solution in original post

6 REPLIES 6

instance_name itself is a OOb system property, you don't need to replace it:

var url =  '<a href =' + gs.getProperty('instance_name') + '/sp?id=form&table=incident&sys_id=' + sys_id + '>Click Here</a>';
Best Regards
Aman Kumar

Ankur Bawiskar
Tera Patron
Tera Patron

@Shweta Kasbe 

where are you using this link/button?

This is OOB one.

you are giving sys_id=-1 which is not a valid record

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader