Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachement download link in service now don't redirect to attachment just down load attachment.

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 appear it just get downloaded.

 

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 then

 

3 REPLIES 3

PraveenkumaM
Tera Contributor

@keshav77 

 

Hope you are doing well.

 

If you can try the same attachment URL with HTML variable's default value and make the variable read only, I think it should work.

 

Regards,

Praveen

what should be the reason it is not working with label variable only work html variable? 

keshav77
Tera Contributor

@Ankur Bawiskar  can you help in this