Download attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 07:17 AM
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.
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 07:27 AM
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/
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 07:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 07:33 AM
Deprecated yes, but they still work and will continue to work.
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 08:02 AM
Still, trying that method. will try to nudge this code also for a list view UI Action.
As its for a single record.