Requirement to Rename ZIP File While Downloading All Attachments Using UI Action

Dharani7
Tera Contributor

Hii Team,

 

We have a requirement to download all attachments associated with a record as a single ZIP file. For this purpose, we have created a UI Action and implemented a script using the /download_all_attachments.do endpoint to download the attachments. However, the ZIP file name is currently auto‑generated by the system.

Is there a way to rename the ZIP file to a custom name based on our requirement?

 

Could someone please suggest an approach for achieving this?

 
Regards,
Dharani.
2 REPLIES 2

Tanushree Maiti
Kilo Patron

Hi @Dharani7 

 

Refer this:

How to download all attachments from a record to a Zip file

Download all the record attachments with one click

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@Dharani7 

it comes from OOTB processor and we don't have access to it's code

check this link and you can handle it with custom solution

Download Attachments as a ZIP File 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader