Download attachment by passing file_name instead of sys_id

Ovin Detree
Kilo Explorer

We are able to download an attachment using the sys id by using the below URL in the web browser or postman.

https://servicenow-instance.ourdomain.com/sys_attachment.do?sys_id=21e63dce1fbec118fb5252c7b04cbcd4

Can we download an attachment by querying just with the filename?

I tried: https://servicenow-instance.ourdomain.com/sys_attachment.do?file_name=myfile.xls but it didn't work.

Thanks in advance.

 

15 REPLIES 15

Thank you so much Hitoshi. Your help is much appreciated.

Yes, multiple calls to ServiceNow would not be a problem.

Thanks again & Take care, 

Ovin