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

Downloading All attachments using SNGuru solution to capturing all attachments on a task as a ZIP file ?

Liyakhat
Mega Expert

Hello All,

 

I am trying to download all the attachments from attachment table for incidents/request items

i have seen a solution provided by servicenow guru 

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

this works fine for single incident/request item and it downloads perfectly

my requirement is to download all the attachments from the attachments table,here we are passing sys_id and table name from ui action to script processor ,can we pass multiple sys_ids and loop through it to download all attachments of all incidents??

 

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi Liyakhat,

I have provided a similar solution earlier here in the community. 

Kindly refer to this link where I have tweaked the code to download all attachments as a zip file. Follow the steps given in the Accepted answer in this link and it will work for you.

https://community.servicenow.com/community?id=community_question&sys_id=e225af43db6f67844abd5583ca96...

Kindly mark my comment as a correct answer and also helpful once worked.

 

View solution in original post

11 REPLIES 11

Yes its working,thanks asif 

Hi Asif,

Kindly help out if we have a solution without Processors. As they are deprecated now.

 

Thanks,

Palak.