Skip to main content

Notifications

Community site session details

Community site session details

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

  • Verified answer
    IceQueen Profile Picture
    42 on at
    Re: PowerAutomate Flow Unable To Enter Folder Contents

    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: 

  • mgrachii Profile Picture
    206 on at
    PowerAutomate Flow Unable To Enter Folder Contents

    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!

  • mgrachii Profile Picture
    206 on at
    Re: PowerAutomate Flow Unable To Enter Folder Contents

    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!

  • IceQueen Profile Picture
    42 on at
    Re: PowerAutomate Flow Unable To Enter Folder Contents

    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?

  • JacksonTeo Profile Picture
    31 on at
    Re: PowerAutomate Flow Unable To Enter Folder Contents

    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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow