Hello all,
I'm trying to get the overall folder size of a Sharepoint Folder that has files within it. I've tried to "Get Folder Metadata" but it's returning '0' as the folder size. Maybe I'm missing something or there is another way to do this? My goal is to get the overall folder size to set conditions further down the flow. Thanks in advance.
Here are my screenshots:
I know it's an old post, but list folder will list only the 1st level folders. how do we do achieve this for sub sub sub sub folders? deep file tree.
Hi @Ctodorut,
You could refer to this Flow to count all files size, and use div() function to convert bytes to MB:
div(variables('TotalSize'),1000000)
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the response.
I want to get the overall folder size with every file that lives in it as well. For example, if the folder contains 3 files at 5Mb's each, the overall size would be ~15Mbs.
Hi @Ctodorut,
The size of the folder metadata is the data size, size of folder in SharePoint all is 0.
Do you mean you want to get the number of files in the folder?
If so, you could use the List folder action to get all files and subfolder, then use length() function to get it:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2