"List" Report scheduled export featuring links to each record in the email body/attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 12:50 PM
When a load a "List" report of Incidents in ServiceNow , I can click the 'Number' and the hyperlink resolves to that record.
Is anyone aware of how I go about configuring a daily export of this report , so that when a user opens the email they have the ability to click the featured 'Number' and load the record this way from the email body or attachment ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:03 PM - edited 05-08-2024 01:08 PM
Hi @pbusch,
Yes, In email notifications, you can use the {URI_REF}
variable to include a link to the record.
If its individual email per record then user {URI_REF} else prepare a tabular list using the email script's template.print method.
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id + '">Link</a>';
template.print(url);
Refer this
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution