Skip to main content

Notifications

Community site session details

Community site session details

Session Id : G2y8KBPx2xMZ8hoB/+5wUa
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?

  • 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started