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

Tapish Sharma1
Kilo Sage

HI,

(Please modify the url as per your requirement)

You can use the below email script and add to your notification

 

// Add your code here
var id = current.sys_id;


var url = '<a href = "https://' + gs.getProperty('instance_name')+'.service-now.com/csm?id=form&table=sn_customerservice_a_r_case&sys_id='+id +'">' +'Click here to get the current status of the request' +'</a>';

template.print(url);

 

Kindly mark helpful/correct

 

 

please mark correct/helpful

var link = "sp/?sys_id=" + current.sys_id + "&view=sp&id=ticket&table=incident";

I tried this link but i am getting javascript browser error.

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

I tried this is not working : -  var url =  '<a href =' + gs.getProperty('https://dev124928.service-now.com') + '/sp?id=form&table=incident&sys_id=' + sys_id + '>Click Here</a>';