Replace URL with a readable text in a related list in SOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have created a related list in Catalog task, to show the attachments for the sc_task, the parent req_item and the parent request, all together.
In legacy view, it works perfect, but in SOW, when I click in the file name it opens the sys_attachment record instead of downloading the file.
I wonder if it is possible to download the file instead of opening the sys_attachment record.
I have also tried to create a URL calculated field that composes the URL. It also works, but it is showing the full url in the related list.
How can achieve any of the two requirements?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@albertosaenz
how is that related list added?
I believe that's the OOTB behavior for any workspace and it won't download the file but open it
I think this is a known thing, members have raised similar question in past
Unable to Download Attachment in Workspace
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @albertosaenz ,
You can try by creating a onLoad Client script on sys_attachment table,
function onLoad() {
//Type appropriate comment here, and begin script below
open('/sys_attachment.do?sys_id='+g_form.getUniqueValue(), '_self');
}
If my response helped, mark it as helpful and accept the solution
