The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Attachements mass download

dmitryyursky
Kilo Explorer

Hi everyone,

Our business has requested a certain functionality, which has been declined by our local ServiceNow integrator as "impossible". We would like to receive confirmation from you as system experts whether this functionality is really possible or not. It goes as follows:

For example we have a bunch of service requests (SRQ) that have several parameters. Each SRQ has some files attached to it.
Using built in reporting, we can separate a list of SRQs that follow our desired parameters criteria.
The question is:   can we then make a mass attachments download for this list of SRQs, so that the attachments are distributed into folders, where the name of each folder would correspond with SRQ name.

Are there any workarounds or anything similar to this desired functionality?

Thank you in advance for your feedback!

3 REPLIES 3

Kalaiarasan Pus
Giga Sage

This would atleast get you started.


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



So bulk downloading of attachment appears possible but with respect to folder part, that is something you will need to do some research.


sammajumder
Giga Contributor

Hi Dmitry



Even though it's a very crude way, you might try out the below below.



Create a UI action with below logic



Get the sys_id's of the attachments for the selected SRQ's and trigger one by one download.



function downloadfile()


{


myWindow = window.open('https://devxxxx.service-now.com/nav_to.do?uri=sys_attachment.do?sys_id=xxxxxxxxxx');


setTimeout(function(){ myWindow.close(); }, 20000);


}



This is not folder wise but simple mass download.



Do post, if you get any permanent solution.