Hello, I have a SharePoint list, with Folders that I am going to use to add documents from different months, do you know a way to create a counter that can give me at the main screen the amount of files that I have in all the subfolders? Can we a ms flow or something, all works. I need to add the counter on the red arrow.
Something like this in that column:
Solved! Go to Solution.
Yes it only shows items and not folders and is not recursive.
The first thing you would need to do is make a custom folder content type, with metadata field that you can set as a number field, then replace all your folders with this content type.
After that you would need two flows item created and item deleted and then process the result figuring out which folders number to increment.
If it was me i would trash the sub folders and use metadata instead, and then Item child count would work as expected.
Like i say, i would not do this via flow.
a) get rid of folders and use metadata and use in-built item child count
b) built a Field Customizer to do the logic for you: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-field-cu...
Is there a reason that you aren't using a library rather than a list? If you were to use a library, you could create a grouped view that shows the number of documents in each group.
If you edit the view on the library you can add the Item Child Count field to the columns that show, not from the totals section of the view (which is what it looks like you tried previously):
And it will show like this in your view:
You can then drop in some JSON column formatting if you need to!
If this response provided an answer to your question please mark it as a solution.
If you liked my reply, please give it a thumbs up! Thank you!
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!