Replace URL with a readable text in a related list in SOW

albertosaenz
Tera Contributor

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?

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron

@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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Dinesh Chilaka
Kilo Sage

Hi @albertosaenz ,

You can try by creating a onLoad Client script on sys_attachment table,Screenshot 2026-03-30 at 9.50.30 AM.png

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