How do I download multiple attachments from multiple records in a zip file?

Ryan Norton
Giga Contributor

I was wondering if there was any way to download multiple files from multiple records in a single zip file.

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

Hello,

Please use below link to get an idea of how to setup. It uses JAVA packages and Processor. Use can customize that in processor script based on relationship between the records to find correct attachments to ZIP

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

 

Note: Please mark reply as correct if it answers your question.

View solution in original post

10 REPLIES 10

I tried following this one, but it uses GlideSysAttachment() which is limited to 4mb, I'm not sure what the successor to this object would be. I haven't found anything to replace it in my searches.

Vishal Khandve
Kilo Sage

Hi ryan,

If you are looking for single incident attachment then go to incident> click on manage attachments> 

then click on downlaod all

 

All attachment will downloaded in zip file.

 

thanks!

Job1
Tera Contributor

Did you ever get this working?

Ryan Norton
Giga Contributor

No sadly. I ended up using an export set. Instead just use the attachment API.
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/integrate/inbound_rest/reference/...

Abhishek142
Tera Contributor

Hi Ryan,

I have a similar requirement to download an attachment from multiple records in zip . Can you please share some insight on the same?

 

Thanks