Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Set a hyperlink in notification

ChunjiJ
Tera Contributor

I created a notification and specified the HR task for the table. I want to include a hyperlink directly to the task in the Message HTML. How do I set up this hyperlink?

3 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@ChunjiJ 

use this directly ${URI} OR ${URI_REF} in email body

URI vs URI_REF vs getLink() 

Email links using ${URI} and ${URI_REF} 

Difference between those 2 approaches

${URI_REF} - display value of the record as link text.

${URI} -   Link text come as 'Link'

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

PrashantLearnIT
Giga Sage

Hi @ChunjiJ 

 

You can use ${URI_REF} in your body if you want to include a hyperlink directly to the task in the Message HTML, as in your case, this is the best possibility for fulfilling your requirement.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

View solution in original post

madicherlas
Giga Contributor

Use {$URI_REF} in the body to ref the to the request. or use mail scripts to create a hyperlink and call it in body using {$mail_script}.

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@ChunjiJ 

use this directly ${URI} OR ${URI_REF} in email body

URI vs URI_REF vs getLink() 

Email links using ${URI} and ${URI_REF} 

Difference between those 2 approaches

${URI_REF} - display value of the record as link text.

${URI} -   Link text come as 'Link'

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

PrashantLearnIT
Giga Sage

Hi @ChunjiJ 

 

You can use ${URI_REF} in your body if you want to include a hyperlink directly to the task in the Message HTML, as in your case, this is the best possibility for fulfilling your requirement.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

madicherlas
Giga Contributor

Use {$URI_REF} in the body to ref the to the request. or use mail scripts to create a hyperlink and call it in body using {$mail_script}.