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 / Getting File Names fro...
Power Automate
Answered

Getting File Names from folder to Iterate - Error asked me to reach community

(0) ShareShare
ReportReport
Posted on by 118

Hi Experts,

I am struck in this loop, and code executes for several minutes taking negative path, this flow is not able to get inside each sub folder to fetch the names for conditional check, can you help me 

Here is the flow I have, cut it down only to list files , I 

"List Folder" after "Get File Properties" is giving me right list as shown below. - So far good

2021-02-18_15h54_12.png

 

Now I want comparing for every (Body), if "IsFolder" is true 

If Isfolder = true

      I want to change the path to subfolder, so I am using 

      so assigned the "path" in the above "body" to a variable and 

     did used listfolder() again with arguments site address and library as "path" from above folder 

2021-02-18_16h36_10.png

 

Please can you help me ?

Categories:
I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @acerNZ 

    can you try passing the id to the List folder and not the Path from above body?

    Mira_Ghaly_0-1613627937076.png

     

     

     

  • acerNZ Profile Picture
    118 on at

    Thank you @Mira_Ghaly 

    I have now list of files in the sub folder. I tried to use Id in forloop to compare, but it is throwing up error,

    I tried with displayname, body and ID to loop each file to compare. Is there a way to extract a particular file from the list.

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @acerNZ 

    So the file is returned in List Folders or no?

     

  • acerNZ Profile Picture
    118 on at

    All good @Mira_Ghaly  I will create separate thread. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard