We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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.
3 REPLIES 3

Tanushree Maiti
Tera 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 Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

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

@Dharani7 

Hope you are doing good.

Did my reply answer your question?

💡 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