Change text of \${URI} from LINK

Mike Malcangio
ServiceNow Employee
ServiceNow Employee

In our e-mail messages we would like to change the text of the URLs to something other than LINK when using ${URI} (for the technician's to link to their case, users their request in the app, etc.). Does anyone know of a way to do this?

We experimented with a mail script that looked this ...


var thisID = ${sys_id};
var thisHost = gs.getProperty('glide.proxy.host');
var hostParameters = "nav_to.do?uri=incident.do?sysparm_view=ess&sysparm_stack=incident_list.do&sysparm_query=active=true&sys_id=";
template.print("clicking here.");


Unfortunately, it worked for a spell and then quite working.

Any suggestions would be greatly appreciated for how to work around this one.

--Mike

1 ACCEPTED SOLUTION

Not applicable

Mike, try using:

var thisID = current.sys_id
instead of:

var thisID = ${sys_id};
I think that might do the job!


View solution in original post

11 REPLIES 11

Not applicable

Mike, try using:

var thisID = current.sys_id
instead of:

var thisID = ${sys_id};
I think that might do the job!


Mike Malcangio
ServiceNow Employee
ServiceNow Employee

Bow that worked like a charm.

Thank you very much!

--Mike


Where would this go? Would this go in an email template? Does this still work?


Yes, it would go in the email notification or template. Just make sure it's in mail_script tags.