web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / count files folder one...
Power Automate
Unanswered

count files folder onedrive

(0) ShareShare
ReportReport
Posted on by 969

Is it possible to use flow to count the number of files in a folder on the onedrive sorted by date?

Categories:
I have the same question (0)
  • v-zhos-msft Profile Picture
    on at

    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'))

    Capture4.PNG

    Capture6.PNG

    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.

     

     

     

  • frixel Profile Picture
    969 on at

    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.

     

    Flow5.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard