notification

Shir Sharvit
Tera Contributor

Hi,

How can I include a clickable link in the HTML message when creating a notification that opens the Service Portal.

 

Thank, Shir.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Shir Sharvit 

you want to take user to service portal?

no email script is required, you can directly include the link in the body, ensure you give relative URL i.e. /sp and not instance name since instance name will change when the code migrates

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Jaspal Singh
Mega Patron
Mega Patron

Hi,

Add > within quotes to line 8 of mail script just after </a

For the notification body call it in format as below

${mail_script:link_sp}

there should not be any space

It still does not work,
I need to add a link to the word "click here" which, once clicked, will take me to the portal page

Vishal Birajdar
Giga Sage

Hi @Shir Sharvit 

 

In your email script update below line :

 

template.print('<a href=' + gs.getProperty('glide.servlet.uri') + '/sp' + '>' + 'Click here' + '</a>');

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates