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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting File Names fro...
Power Automate
Unanswered

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,413 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,413 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard