Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to create download links?

peterraeves
Mega Guru

We want to have files automatically downloaded when you select an option from a select box on a record producer.

So my questions are:

- Where should these files be uploaded?

- What should the link be to redirect to?

- How should I redirect to that link?

2 REPLIES 2

sreedhar11
Tera Contributor

- You need to upload files to sys_attachment table



- 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


-


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


Thanks sreedhar