how to attach a file to link

immanuel1
Mega Contributor

Hi All,

I need to attach a excel file to below   link then if i click that link need to download that file.How to do please help

find_real_file.png

Thanks In Advance

1 ACCEPTED SOLUTION

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

Hello,



You need to upload the file in the instance and you need sys_id of the attachment record.



1. Upload the file.


2. Get the sys_id of the attachment from sys_attachment table (/sys_attachment_list.do).


Screen Shot 2017-06-01 at 4.44.58 PM.png


3. Right click on the field and add below URL :


https://instance.service-now.com/sys_attachment.do?sys_id=1894eef4ef331000914304167b2256c2



Screen Shot 2017-06-01 at 4.41.42 PM.png



Let me know for any question.


View solution in original post

10 REPLIES 10

Iam not understand please give me clear description for this problem.


amlanpal
Kilo Sage

Hi Immanuel,



You also can use annotation to achieve this requirement. All you need to do is to create a new Annotation on the form and attach the file there. Please right click on the form header-->Configure-->Form Layout and create a new annotations as per the below screenshots. Pass the attachment sys_id over there to download.


find_real_file.png


find_real_file.png



I hope this helps. Please mark correct/helpful based on impact


Hi Amlan Pal,



How to create Annotations?



Regards,


Immanuel


Hi Immanuel,



Please find this useful links in order to create Annotations on the form: Add a form annotation



I hope this helps. Please mark correct/helpful based on impact


Midhun1
Giga Guru

Hi Rathnakar,



Where did you configure that link ? We can attach it!