Download attachments

Palak Midha
Tera Contributor

Hi all,

I am trying to download attachments using UI Action.

The UI action looks like below attached image.

I have tried g_navigation.openPopup, window.open, action.setRedirectURL  and also GlideDialogWindow.

Also when using window.open, the property "glide.script.block.client.globals" was false. Still, the attachments aren't downloaded when the UI action is clicked.

The attachment for one record was downloaded when action.setRedirectURL was used.

 

Kindly assist how can I get this working.

7 REPLIES 7

Paul Curwen
Giga Sage

The ability to download selected attachments is already provided as a standard platform feature. Not sure why you would want to spend time reinventing this? 

if you need to have some custom functionality have a look at this for a good example: 

https://servicenowguru.com/scripting/download-attachments-zip-file/

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Hi Paul,

The ability download selective attachment is available but, I am trying to do a bulk download of attachments from different records by one click.

Also, the functionality in SNGuru is using processors, which are deprecated. 

 

Deprecated yes, but they still work and will continue to work. 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Still, trying that method. will try to nudge this code also for a list view UI Action.

As its for a single record.