- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2021 11:14 AM
Hello dear community I need help:
1 I have a UI Action that allows me to download attachments as a ZIP file:
Script:
action.setRedirectURL('download_all_attachments.do?sysparm_sys_id=' + current.getUniqueValue());
2 It works properly:
3 When I check my downloads I get the ZIP file like this:
I would like to know if it is possible to download the ZIP file with the number of the incident.
For example something like this:
If the ZIP file contains the number of the incident, service, problem, etc. from which the files were downloaded, we will be able to know where those attachments come from.
I hope you can help me.
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 10:38 AM
As mentioned in your other thread, this is OOTB java processor, which you can not pass number or make any changes.
Create custom processor and there you can add new parameter to rename your file name with record number, you can refer below blog, which has mentioned sample code. That will solve your requirement.
https://servicenowguru.com/scripting/download-attachments-zip-file/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2021 11:28 AM
This export is handled by a Java processor, which is a black box. You cannot see or change its logic.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 10:38 AM
As mentioned in your other thread, this is OOTB java processor, which you can not pass number or make any changes.
Create custom processor and there you can add new parameter to rename your file name with record number, you can refer below blog, which has mentioned sample code. That will solve your requirement.
https://servicenowguru.com/scripting/download-attachments-zip-file/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 02:20 PM
You are the best!!