Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to pass URL in email scripting

sayyed shabana
Tera Contributor

How to pass URL in email scripting

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @sayyed shabana 

https://www.servicenow.com/community/now-platform-forum/how-to-add-an-url-in-email-notifications/m-p...

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Sagar Pagar
Tera Patron

Hi @sayyed shabana,

 

You can use the anchor tag to add the URL in email scripts as below -

 

template.print("<a src='add_url_here'>Text to display</a>");

 

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

Danish Bhairag2
Tera Sage

Hi @sayyed shabana ,

 

Sample one u can try. Storing URL value in property hence used property. Below Url displays record on portal. please ammend/modify as per requirement

 

 

template.print('<a href="' + "/" + gs.getProperty('portal_url') + "?id=copy_form&table=table_name&sys_id=" + current.id + "&view=sp&int_nav=yes" + '"');

 

 

Thanks,

Danish