Hyperlink in Notification

Mahesh033
Tera Contributor

Hi All,

 

We have configured provider notification which is triggered in msteams.

notification is getting triggering ,but need help in adding Hyperlink in that notification ..

${mail_script:scriptName} is not working its coming as plain text and not as hyperlink

6 REPLIES 6

Jaspal Singh
Mega Patron
Mega Patron

Hi Mahesh,

Please share the mailscript that is being used

Hi @Jaspal Singh 

Please find below 

var sur = new GlideRecord("asmt_assessment_instance");
sur.addQuery("trigger_id", current.sys_id);
sur.addQuery("user", current.caller_id);
sur.query();
if (sur.next())
{
    template.print('<a href="/sp?id=take_survey&instance_id=' + survey.sys_id + '">Please take survey</a>');
}
Mahesh033_0-1708345655344.pngMahesh033_1-1708345676895.png

 

 

Anirudh Pathak
Mega Sage

Hi @Mahesh033 ,

Please use the below code -

 

var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=take_survey&instance_id=' + survey.sys_id + '">Please take survey</a>';
template.print(url);

 

Hi @Anirudh Pathak 

It is not working , in MS teams notification its should as plain text and not has hyperlink