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
Tera Patron

Hi @sayyed shabana 

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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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
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