Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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 ?

  • acerNZ Profile Picture
    118 on at
    Re: Getting File Names from folder to Iterate - Error asked me to reach community

    All good @Mira_Ghaly  I will create separate thread. 

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Getting File Names from folder to Iterate - Error asked me to reach community

    @acerNZ 

    So the file is returned in List Folders or no?

     

  • acerNZ Profile Picture
    118 on at
    Re: Getting File Names from folder to Iterate - Error asked me to reach community

    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.

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Getting File Names from folder to Iterate - Error asked me to reach community

    @acerNZ 

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

    Mira_Ghaly_0-1613627937076.png

     

     

     

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

Featured topics

Restore a deleted flow