Incident number as link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2023 12:45 AM
Hi all, How can i get this current.number (incident number) as http link in output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2023 05:43 AM
@KB18 var Number = current.number;
var URL = gs.getProperty('glide.servlet.uri') + 'incident.do?sys_id=' + current.sys_id;
r.setStringParameterNoEscape('u_text', 'New incident assigned to you. Click <a href="' + URL + '">' + Number + '</a> to view the incident.');
tried this still not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2023 07:19 AM
@Sharath807 Update your code as follows and let me know if it works for you.
var incNumber = current.number;
var emailURL = gs.getProperty('glide.servlet.uri') + 'incident.do?sys_id=' + current.sys_id;
r.setStringParameterNoEscape('u_text', 'New incident assigned to you. Click <a href="' + emailURL + '">' + incNumber + '</a> to view the incident.');
Variable names Number and URL are reserve keywords in javascript and can't be used as variable names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2023 09:09 PM
@Sandeep Rajput Hi tried above script..still its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2023 09:11 PM
Use ${URL_REF}