The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Identify Knowledge Articles with large attachments

diegofarias
Tera Contributor

I need to pull a report that lists all the Knowledge Articles that contain large attachments. Since sys_attachment  is a forbidden table, how can connect it to Knowledge? any ideas? 

3 REPLIES 3

Bhuvan
Kilo Patron

@diegofarias 

 

Go to system properties and open the property 'glide.ui.permitted_tables' and add sys_attachment in the allowed tables for reporting and dashboards. Once added in the property, you can report on sys_attachment table

Bhuvan_0-1758450362101.png

Add a report or dashboard sorted by size bytes and it should fulfill your requirement

Bhuvan_1-1758450447416.png

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

@diegofarias 

 

Did you get a chance to review this as I believe the provided information should answer your question.

 

If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

kaushal_snow
Mega Sage

Hi @diegofarias ,

 

you can utilize the sys_attachment and sys_attachment_doc tables, which store metadata and content chunks of attachments, respectively. While the sys_attachment table is not directly available for reporting by default, you can enable it by modifying the glide.ui.permitted_tables system property to include sys_attachment. Once enabled, you can create a report that filters records based on the Table Name field set to kb_knowledge and the Size Bytes field to identify large attachments. ....Alternatively, you can create a custom script or scheduled job that queries the sys_attachment table for records associated with the kb_knowledge table, checks the Size Bytes field, and identifies attachments.......

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/