I need to create a button on email notification And on click that button should redirect me the linked incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 05:54 AM
Hi
I need to create a button on email notification And on click that button should redirect me the linked incident.
Can anyone help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 05:56 AM
{URI_REF} already does the linking bit. You just need to wrap that in HTML that looks button-ish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 06:35 AM
var agentURL = '<a href="' + gs.getProperty('glide.servlet.uri') +current.getTableName() + '/' + current.sys_id + '">' + current.number + '</a>';
template.print(agentURL + "<br />")
Hi
can you help with what is wrong in this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 07:34 AM
Hi,
if you want link then do this
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + '/nav_to.do?uri=' + current.getTableName() + '.do?sys_id=' + current.sys_id + '">' + current.number + '</a>';
template.print(url);
if you want to show button and on click of that incident should open refer below link for same; just enhance it as per your need
Approve/Reject button in Approval notification
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 01:17 PM
Hi Ankur
How to add this link in button?