I want to create a Hyper link of the RITM number in my worknotes in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 02:26 AM
Hi All ,
I have a requirement where I need to hyperlink the RITM number in my worknotes.
I am implementing this scenario in my run - script activity in workflow , along with the other part of script.
I am writing the below part of HTM to hyperlink the RITM number , but it is not working out .
current.work_notes = 'Request number: ' + '[code]<a href="https://' + instanceName + '.service-now.com/sc_req_item.do?sys_id=' + reqItmSysID + '" target="_blank">' + requestNumber + '</a>[/code]';
But it is not creating hyperlink to the request number , can anyone please let me know where did it went wrong ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 03:14 AM
What is coming in output, can you showcase the screenshot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 04:41 AM
Hi @Samaksh Wani - In the worknotes it does give me the hyper link with the RITM no , but in the email notification .. it prints [code] .. [/code] tag .
Attaching the snippet :
I don't want the code tag to show like this .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 04:43 AM
current.work_notes = "'Request number: ' + '<a href="https://' + instanceName + '.service-now.com/sc_req_item.do?sys_id=' + reqItmSysID + '" target="_blank">' + requestNumber + '</a>'";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 04:56 AM
Hi @Samaksh Wani - It is giving me the parsing error : unexpected token automated when I am trying with the above given line of code .