How to add an url in email notifications?

anusha9918
Kilo Contributor

Hi,

Please suggest me how to add a URL in notifications.

9 REPLIES 9

Rohant Joshi2
Kilo Expert

What is that your trying exactly.


To add URL, you can use ${mail_script:setURLScript} and in the "setURLScript" script you can define your anchor tag <a></a>.


Deepa Srivastav
Kilo Sage

Use $ {URI} or $ {URI_REF} for that in the mail body. Also check my reply in the below thread.



how to set the link to a particular record by using email notifications?


Section 8:-


http://wiki.servicenow.com/index.php?title=Email_Notifications#gsc.tab=0



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Anusha,



First of all there are 2 types of URL's which you can mention in email notifications


${URI} and ${URI_REF}


Explanation for both will be found in below URL



http://wiki.servicenow.com/index.php?title=Email_Notifications#Enabling_Links_to_ServiceNow_Records



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Harsh Vardhan
Giga Patron

Hi Anusha,



Please refer the link below.


check the section 3



http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#gsc.tab=0  



Regards,


Harshvardhan