Download all attachments of KB articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 10:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 10:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 10:58 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 11:00 PM
what do you want to do after downloading?
What's the business use-case?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 06:43 AM - edited 01-07-2024 12:33 PM
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.