- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 06:23 AM
How to populate a hyperlink in comments using business rule.
https://dev12345.service-now.com/sp?id=kb_article_view&sys_kb_id=12345.
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 06:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 07:34 AM
Hi Saurav,
I added but it didn't work, could you please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 07:51 AM
Please paste the code you are trying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2022 01:23 AM
Hi Saurav,
I tried and it worked.
Thank you.