How to add hyperlink in business rule so that incident number should come with link in activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 10:31 PM
need the incident number should come with hyperlink in activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 10:58 PM
Hi,
you can add hyperlink in work notes which is journal field
sample below
var url = '';
url = "[code]<a href='";
url += "/incident.do?sys_id="+'b3f076504750210042bd757f2ede273f';
url += "' target='_blank'>" + current.number + "</a>[/code]";
current.work_notes = url;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 06:31 AM
Hi Ankur,
I referred the above code for one of my requirements to make the KB number a clickable link on Additional Comments and it worked perfectly.
Thank you so much.
Regards,
Ayshee Chattopadhyay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 06:49 AM
Glad to help
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 09:02 PM
If your question is resolved please close the question as answered so that it moved to answered list and benefit future readers
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader