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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't find filepath wh...
Power Automate
Unanswered

Can't find filepath when trying to count the number of files in a folder

(0) ShareShare
ReportReport
Posted on by 11

cdschoy_0-1704900274203.png

Trying to set up a flow that can count the number of files inside a folder, but I can't figure out how to create the file path for it to work. Any help would be greatly appreciated.  

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    I can't understand what is your requirement 

    If you need to count files in folder

    Use get files in folder activity and 

    Set a variables as files.count then you will get the number of files inside the forder 

    If you need the file path for all the files present in the folder then 

    After doing the above flow use for each loop and iterate through the files 

    Then in current item you will get the path of the file for all the files in folder 

     

    And if you need some part of the path then you can use get file path part activity

     

    Hope this helps

    Usha 

  • cdschoy Profile Picture
    11 on at

    I think my issue is more of I'm trying to retrieve the file using get files in folder but when looking at the fight at the flow variables I can see that it's not connecting with the folder. 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The area of the window you're highlighting is a variable preview screen. It is populated with values when you run the flow. It's not there while you're creating your flow. So, if you want to verify whether the flow works or not, try pressing the "Run" button on the top of the screen.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard