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 / Limit "List folders" t...
Power Automate
Unanswered

Limit "List folders" to Document Library View

(0) ShareShare
ReportReport
Posted on by 31

Hi all,

 

I've a fairly straight forward Flow that moves folders within a sub-directory to another SharePoint destination.

 

I'm needing to restrict the "List folder" action to a View within the Document Library that will limit the folders to manageable amounts that can be batched over time.


Reading another thread on a similar workflow, I tried to configure a "Get Items" action but unfortunately this action is only allowing Site List selection, not Site Document Libraries - and there was no detail given on how Get Items could be configured to process a Document Library.

 

For clarification; the OUTPUTS body from "List folder" returns an array of too many folders. I have a Document Library View created that could reduce this array, but not sure how to call this View via Flow.

An alternative method that only takes the top 15 folders from the OUTPUTS body array would probably work - but the total count of folders is substantial (thousands), and I figured that leveraging an existing View would work best for batch processing and visibility.

Appreciate any ideas,

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @KarlH ,

    instead of 'Get items' use 'Get files (properties only)', it's the same action but designed for document libraries.

  • KarlH Profile Picture
    31 on at

    @tom_riha - I greatly appreciate you help.

     

    Get Files will do what we're needing. I realise now that the Library View only dictates the columns and not the actual count return, but as "Get files (properties only)" has a "Top Count", this fulfils the requirement of pacing the amount of data moved to a low folder count - excellent! 

     

    However, it seems that the default "Current Item" is being rejected by the Move Folder operation. I'm not sure why this won't Just Worksâ„¢ - so I'm needing a hand to build an expression to target the exact value to use for "Folder to Move".  I can see the data that I think I'm needing - the Identifier, but can't get the syntax correct. 

     

    KarlH_0-1657319931345.png


    I believe that I need to parse the "identifier" but I just can't get the syntax right >_<

    KarlH_1-1657320035430.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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard