Worknotes does not display URLs as hyperlinks

Avinash72
Tera Contributor

Hi All,

 

The Worknotes in the incident is not displaying the Hyperlinks.

Avinash72_0-1761492071791.png

The KB should be Clickable and once clicked it should open it in a new tab.

1 REPLY 1

Sarthak Kashyap
Tera Guru

Hi @Avinash72 ,

I tried your problem in my PDI and it is working fine for me plaese check below code

var gr = new GlideRecord('incident');
gr.get('d71b3b41c0a8016700a8ef040791e72a');
var url = '[code]<a href="' + gs.getProperty('glide.servlet.uri') + '/'+gr.getTableName() + '.do?sys_id=' + gr.sys_id + '" target="_blank">' + 'My Record' + '</a>[/code]';

gr.work_notes= url;
gr.update();

 

Result 

SarthakKashyap_0-1761502179726.png

 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak