Attachement download link in service now

keshav77
Tera Contributor

Hi All,

 

I am trying to create a Link that just download attachment but don't redirect to the attachment.

I am using this under catalog item with label variable,  Currently when we click the link it ask to leave the page and then attachment get downloaded but i don't want that pop-up to leave the page to appear, I want  just want when user click the link will download the attachment for the user

 

In this way I am passing the attachment url - 

https://<instance_name>.service-now.com/sys_attachment.do?sys_id=<attachment_sys_id>

to create link but this is showing a pop up also.

what will be the correct way  to achieve this

1 ACCEPTED SOLUTION

@keshav77 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

3 REPLIES 3

Abbas_5
Tera Sage
Tera Sage

Hello @keshav77,

 

For a similar kind of issue, please refer to the link below:
https://www.servicenow.com/community/developer-forum/attachment-download-link-redirect-to-servicenow...

 

If it is helpful, please hit the thumbs-up icon and accept the correct solution. By referring to this solution in the future, it will be helpful to them.

 

Thanks & Regards,

Abbas Shaik

Ankur Bawiskar
Tera Patron
Tera Patron

@keshav77 

you can use Rich Text label variable and use _blank for the link so that it opens in new tab and user can continue on current form

Something like this

AnkurBawiskar_1-1748401406941.png

 

AnkurBawiskar_0-1748401385234.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@keshav77 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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