Email template get the URL field with link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:48 AM
Hi All,
We have one field contain URL value in Incident communication task.Have to get that URL field in email template.Could you please suggest.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 10:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 11:17 AM
Hi Kavitha, You will have to use something like below,
var urlText=current.u_meeting_url.toString();
var url= urlText.replace(/<[^>]*>/g, ' ');
template.print('<a href="'+url+'"</a>');
Please mark answer as correct or helpful if it helps.
Thanks and Regards
Abhijit
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 01:17 PM
Thank you for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 04:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2022 04:27 AM
could you please provide URL that you are testing and email screenshot.
Regards,
Abhijit
ServiceNow MVP