Is it possible to use flow to count the number of files in a folder on the onedrive sorted by date?
Hi @v-zhos-msft
Thanks for your time and help.
I made the Flow based on your example.
I only want with the filter that I would like to see that only the files from yesterday are counted.
And then send to me by email.
Hi @frixel ,
1.You can use the 'List files in folder' action of onedrive to get all files in the folder.
2.Use the 'Filter array' to get the files by date.
3. Initialize an array variable.
4. Append the file name into the array.
5. Ues the length function to get the number of files.
I didn't set the date in the 'Filter array'.
You can set a specific date or greater(less) date.
The expression in the Compose is: length(variables('files'))
Best Regards,
Community Support Team _ Zhongys
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional