- 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-29-2021 12:31 AM
Hi,
you did not copied it full
give quotes for table name, sys_id, number
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 08:01 AM
Good morning Ankur,
1. Here is the code in f(x)
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + '/nav_to.do?uri=' + 'change_request' + '.do?sys_id=' + 'c83c5e5347c12200e0ef563dbb9a7190' + '">' + 'CHG0030016' + '</a>';
return '[code]' + url + '[/code]';
2. It created a link in RITM work notes
3. However, when I clicked on the link, it did not open 'CHG0030016', but instead it took me to here.
4. Since the "Change Request Record Number" value is dynamic, is it possible to pass Change Request Record Number in to the f(x) is Instead of hard-coding the "number"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2021 10:53 PM
Hi,
yes you can get it dynamically
just use fd_data and then dot walk to that action and get the sys_id
Regards
Anku
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-30-2021 06:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2021 07:36 AM
Hi,
can you right click and copy the link and check what it is?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader