Skip to main content

Notifications

Power Automate - General Discussion
Answered

Count files in OneDrive folder in base a condition

(0) ShareShare
ReportReport
Posted on by

Hello, I need to count the number of files in a Onedrive folder based on a condition that it contains a string of characters and I don't know how to do it, at the moment I am using this action but I don't know how to see how many files it produces.

How should I do it?

 

Thanks for the help

 

RoberthCB_0-1703800676558.png

 

  • Verified answer
    Re: Count files in OneDrive folder in base a condition

    Hi @RoberthCB ,

    Please use the 'List files in folder' control.

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_1-1703808202327.png

    vyetonggumsft_2-1703808251644.png

    length(outputs('List_files_in_folder')?['body/value'])

    Best Regards,

    Sunshine Gu

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard