- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:18 PM
Hi Team ,
only for particular catalog
We want make this SCTASK00001 ( as a url ) if user clicks on that means it has to redirect to that sctask .
In the same SCTASK we are populating this message in worknotes also . in worknotes also it has to be url
can anyone please provide me step by step solution to achieve .
Please provide screenshot for better understandig
thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 12:13 AM
Just put quotes around sc_task
var url = '[code]<a href="' + gs.getProperty('glide.servlet.uri') + '/'+'sc_task' + '.do?sys_id=' + gr.sys_id + '" target="_blank">' + workflow.scratchpad.task_number + '</a>[/code]';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:34 PM
@nameisnani , for having the url in worknotes, refer this thread: https://www.servicenow.com/community/developer-forum/how-do-i-display-a-clickable-url-in-my-work-not...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:40 PM
Hi @nameisnani
In order to embed URLs in the work notes, you need to enclose the URL between [code]YOUR URL[/code] tag.
Also ensure, glide.ui.journal.use_html system property is set to true, so HTML tags are allowed.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:16 PM
Hi @Sonam_Tiwari @Aman Kumar S
Is that possible embed the 1st - Sctask number (URL) on the 2nd sctask work notes via workflow please check my below code and correct .
task.work_notes = "Please review the attachment on the " + workflow.scratchpad.task_number; // Retriving the Access Provision SCTASK num and updating the worknotes entry
task.description = "Please review the attachment on the " + workflow.scratchpad.task_number; // Retriving the Access Provision SCTASK num and updating the Description entry
task.work_notes = [code]< a title = 'workflow.scratchpad.task_number'href = 'sc_task.do?sys_id=-1'> < /a> [/code]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:19 PM