Create a hyper link in email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 12:10 PM
Hello,
I need to create hyperlink for my portal in email notification named as 'Portal'. There are around 25 notifications in which it needs to be added.
How do I create? Do we have something straightforward like we have for instance : ${URI}. Or will I have to create a email script for it? or is there any other way.?
Thanks in advance
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 12:12 PM
In order for us to narrow our solution, let us know if the hyper link is static, or dynamic.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 12:14 PM
You can create email notification script like below
Name: PortalLink
(function runMailScript(current, template, email, email_action, event) {
// Build the link format
var attachLink = '<a href=/sp?id=ticket&sys_id=' + current.sys_id;
attachLink += '&table=' + current.getRecordClassName();
attachLink += '>Portal</a>';
// Print the link text
template.print(attachLink);
})(current, template, email, email_action, event);
On each notification call it like
${mail_script:PortalLink}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 02:35 PM
Step 1 : You can use insert/edit link option which is present in notification as shown below.
Step 2 : Edit it as
Step 3 : This will be view as below
Please Mark it as Correct answer/Helpful if it helps you in any way.
Regards
Raghuram.