Link to incident in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 02:26 AM
Hi,
I'm sending email via flow designer. And i want to know how I can add Link to that record of incident.
I used ${URI_REF} but doesn't work.
Please write the answer in breif.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:24 AM - edited 02-20-2024 05:25 AM
Hi @nowitsvashu
Make a flow Variable to hold the URL and using Set Flow Variables action, set the value of flow variable with the script as below :
// Fetch the instance name from the system property
var instanceName = gs.getProperty('glide.servlet.uri');
// Construct the URL based on the incident sys_id to open the incident form
var incUrl = instanceName + '/nav_to.do?uri=incident.do?sys_id=' + incSysID;
// Construct the email content
var emailContent = '<html><body>';
// Add Hyperlink to incident Number
emailContent += '<a href="' + incUrl + '" style="color: #007BFF; text-decoration: none;"><strong><u>' + incNumber + '</u></strong></a>';
emailContent += '</body></html>';
return emailContent;
Please note that you need to populate the value of incSysID and incNumber within this script for the Link to work on the incident table. If you have custom table, please modify it accordingly.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.