Download all attachments of KB articles

Lucky1
Tera Guru

Hello all,

 

Good Morning.

I want to download all attachments of all kb articles.

Can someone provide me step by step process to achieve this please?

 

 

Regards,

Lucky

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi @Lucky1 

This is nearly impossible. You would need to bundle all files into a single ZIP file. That file would be built in the memory of an application node. That memory is restricted and therefore that build would fail.

Another approach leverages PowerShell and promises more success: https://www.servicenow.com/community/now-platform-articles/retrieving-attachments-from-servicenow-to... 

Maik

Community Alums
Not applicable

Hi @Lucky1 ,

I agree with @Maik Skoddow !! 

It's the "sys_attachment" table where you can find your attachments, you can search and download from there as well.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Lucky1 

what do you want to do after downloading?

What's the business use-case?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

ashishdevsingh
Tera Expert

if it is the one time activity then you can go to sys_attachment table and put the filter condition and can download it. 

I think generating zip files including all records may cause the performance issue. 

 

as @Maik Skoddow suggested, PowerShell is suitable option to you and you can give a try.