- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 02:07 AM
Hello everyone,
I want to add a button in email notifications which will act as a link and after clicking on it, it will redirect the user to a related record.
Currently, I've added <button>${URI_REF}</button> in the source code. The button displays the record number in it. But I want to display text in that button and want the whole button as a link.
Thanks in advance!
Amol
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 02:13 AM
@Amol Pawar You can create a email notification script and add it to the notification.
In notification script you can add html as below
template.print('<a href="LINK HERE" >button</a>');
email notification script documentation: https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_le...
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 02:13 AM
@Amol Pawar You can create a email notification script and add it to the notification.
In notification script you can add html as below
template.print('<a href="LINK HERE" >button</a>');
email notification script documentation: https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_le...
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023