- 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-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-11-2022 07:34 AM
Hi Saurav,
Thank you. It worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:38 AM
Could you please suggest if text can be added in place of current.number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:42 AM
Yes you can add anything over there.