How to populate a hyperlink in comments using business rule.

Shri8
Tera Contributor

How to populate a hyperlink in comments using business rule.

https://dev12345.service-now.com/sp?id=kb_article_view&sys_kb_id=12345.

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please use the below code in after business rule:-

var url = '';
url = "[code]<a href='";
url += 'https://dev12345.service-now.com/sp?id=kb_article_view&sys_kb_id=12345';
url += "' target='_blank'>" + current.number + "</a>[/code]";

current.comments = url;

current.update();

Please mark answer correct/helpful based on Impact

 

View solution in original post

7 REPLIES 7

Shri8
Tera Contributor

Hi Saurav,

I added but it didn't work, could you please suggest.

Please paste the code you are trying

Shri8
Tera Contributor

Hi Saurav,

 

I tried and it worked.

Thank you.