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

Community site session details

Session Id : 3zZ6qbwjBk3YLlEq6UWBn3
Power Automate - Building Flows
Unanswered

count files folder onedrive

Like (0) ShareShare
ReportReport
Posted on 1 May 2019 08:33:14 by 901

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

I have the same question (0)
  • frixel Profile Picture
    901 on 02 May 2019 at 07:39:03
    Re: count files folder onedrive

    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

     

  • v-zhos-msft Profile Picture
    on 02 May 2019 at 03:02:45
    Re: count files folder onedrive

    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.

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2