Create a hyper link in email notification

Rachael12
Tera Contributor

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

3 REPLIES 3

ccajohnson
Kilo Sage

In order for us to narrow our solution, let us know if the hyper link is static, or dynamic.

Mike Patel
Tera Sage

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}

Inactive_Us2002
Kilo Guru

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.