Forum Discussion
Jack_Eidsmsness
Jan 06, 2023Brass Contributor
Getting a total count of items in SPO list or library
I know SPO has some kind of count of items in document libraries and lists, because I can see it on a ListEdit.aspx page, where it has a warning about going over the list view threshold. I just can't...
Matthias_Glubrecht
Microsoft
Jan 09, 2023Jack_Eidsmsness , there is an ItemCount property on the list object that you can access via the various APIs (CSOM, REST).
But unfortunately this only gives you the grand total. If you want to know the number of items/documents in a filtered view, you will need to count them yourself.
Hth, Matthias