- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2021 10:07 PM
Hello,
Can someone please provide suggestion on how we can use Flow Designer to add a hyperlink in RITM Work Notes to a change recorder?
Thank you
Solved! Go to Solution.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 10:40 PM
Hi,
just try this
var sysId = fd_data._7__for_each.item.sys_id;
var tableName = 'change_request';
var number = fd_data._7__for_each.item.number;
var url = '<a href="' + '/' + tableName + '.do?sys_id=' + sysId + '">' + number + '</a>';
return '[code]' + url + '[/code]';
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
07-28-2021 12:32 PM
Hello Ankur,
Here is the code I entered in f(x) script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2021 09:07 PM
Hi,
I assume your flow trigger is RITM table
please update as this and test once
var sysId = fd_data.trigger.request_item.sys_id;
var tableName = 'sc_req_item';
var number = fd_data.trigger.request_item.number;
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + '/nav_to.do?uri=' + tableName + '.do?sys_id=' + sysId + '">' + number + '</a>';
return '[code]' + url + '[/code]';
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
07-28-2021 11:36 PM
Ankur,
You’ve always been very helpful and responsive. We are very much appreciating your help.
Here is our use case so that you could understand and provide us with better assistance.
In Short Description field, it currently captured the Chang Request Number.
We want this to be clickable hyperlink that would open the Change Request Number.
The hyperlink can be either in Short Description or Work Notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2021 11:44 PM
Hi,
link can be shown only in work notes which is journal field and not short description
in the f(x) you can add script
example for hard-coding
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
07-29-2021 12:20 AM