The Now Platform® Washington DC release is live. Watch now!
‎08-14-2017 03:29 AM
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!
‎08-14-2017 03:36 AM
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.
‎08-14-2017 03:38 AM
Hello Dmitry,
Refer the below links may be helpful to you.
https://www.servicenowguru.com/scripting/download-attachments-zip-file/
Download all Attachments of an Incident - Technical Documentation - Support - Juniper Networks
Download all attachments in one go from sys_attachment table
"Download all attachments in a single zip file" customization is creating issue
http://www.servicenowguru.com/scripting/download-attachments-zip-file/comment-page-1/#comment-34336
‎08-14-2017 05:20 AM
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.