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 / PowerAutomate Flow Una...
Power Automate
Answered

PowerAutomate Flow Unable To Enter Folder Contents

(0) ShareShare
ReportReport
Posted on by 42

Hello, 

 

So, I have a flow that is to transverse all the folders and files and email notifications on files that are about to expire. 

The flow worked on test folders with nested files, however on the final "Contacts" folder (where there are about 200 folders and 5000 files), it only transverses the folders. 

 

I am very confused on why the flow only works for the test folders (the test folder is one of the "Contracts" folders) and not the "Contracts" folder. Is there a specific reason or perhaps the other folders have some sort of protected content property?

(Note: I did not originally create this library so not sure if there is some property in place that is preventing the flow from transversing all files)

 

Flow Below:

IceQueen_0-1625683339837.png

IceQueen_1-1625683358274.png

 

(Note: Ignore the condition after the "If No", that was me trying to figure out what the flow was doing - transversing folders only)

Categories:
I have the same question (0)
  • JacksonTeo Profile Picture
    35 on at

    Hi @IceQueen 

    Is it because you select the Limit entries to folders of your test folder? try to just select the parent folder and test.

    JacksonTeo_0-1625806613228.png

     

  • IceQueen Profile Picture
    42 on at

    Hello @JacksonTeo 

     

    Apologies for that confusion. The flow seems to work when I direct it to that folder but not for the general "Contracts Folder."  That is the issue I am trying to figure out.

     

    Not sure if this is the issue, but I also get a lot of weird stuff when trying to set the folder path:

    IceQueen_0-1625863405678.png

    This is weird since I don't know all the other folders that have an _ before them and also when navigating in the library, there is only Documents/Contracts - not Shared Documents/Contracts. 

    Is the flow running into an issue with these "hidden" folders?

  • mgrachii Profile Picture
    206 on at

    Hello!

    This also happened to me some weeks back. The "Get Files" and "List files in folder" cards don't seem to work on folders/sites where there are too many nested files - I don't really know why.

     

    The only way I found to workaround this was by using the "Send HTTP Request to SharePoint" card, then I just added a Parse JSON action to access and loop the files. The flow worked for me after I started using the HTTP card. 

     

    Just select the Site Address, then Method shouold be GET and the The URI structure is as below, always starts with "_api/web/GetFolderByServerRelativeUrl" then indicate the part between parentesis and then end with "/files" 

    -> _api/web/GetFolderByServerRelativeUrl('/Shared%20Documents/your-folder-path-goes/here')/files

    mgrachii_0-1626035845175.png

    hope this helps!

  • mgrachii Profile Picture
    206 on at

    Hello!

    This also happened to me some weeks back. The "Get Files" and "List files in folder" cards don't seem to work on folders/sites where there are too many nester files - I don't really know why.

     

    The only way I found to workaround this was by using the "Send HTTP Request to SharePoint" card, then I just added a Parse JSON action to access and loop the files. The flow worked for me after I started using the HTTP card. 

     

    Just select the Site Address, then Method shouold be GET and the The URI structure is as below, always starts with "_api/web/GetFolderByServerRelativeUrl" then indicate the part between parentesis and then end with "/files" 

    -> _api/web/GetFolderByServerRelativeUrl('/Shared%20Documents/your-folder-path-goes/here')/files

    mgrachii_0-1626035845175.png

    hope this helps!

  • Verified answer
    IceQueen Profile Picture
    42 on at

    Hello, 

     

    Thanks for your advice. However, after a colleague helped me, it seemed to be the issue that the flow only runs 100 items. This link helped resolve the issue: 

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard