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 / Get Files inside a Doc...
Power Automate
Answered

Get Files inside a Document Set

(0) ShareShare
ReportReport
Posted on by 51
Hi all,
 
Is there a way to get all files inside a specified Document Set like example: /Library Name/Folder Name/Document Set Name.
Because when I'm using 'Get files (properties only)' I'm only able to limit entries up to Folder ex. /Library Name/Folder Name
BlueGosu_0-1713952912709.png


Thanks and Regards,

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,855 Most Valuable Professional on at

    Hi @BlueGosu,

     

    You could try and use a Filter Query instead of the Limit Entries to Folder setting. You can use the Path (aka FileDirRef) for this. You can also include a filter on Item Type (aka FSObjType).


    Can you try the below?

    (substringof('@{variables('DocumentSetName')}',FileDirRef)) and (FSObjType eq 0)

     

    filedirref.png

     

  • BlueGosu Profile Picture
    51 on at

    Hi @Expiscornovus 

    (substringof('@{variables('DocumentSetName')}',FileDirRef)) and (FSObjType eq 0)


    I tried that filter query but unfortunately it's resulting to an empty value (there should be about 9 files inside the Document Set). Output image below:

    BlueGosu_0-1714004194062.png

     

  • Expiscornovus Profile Picture
    33,855 Most Valuable Professional on at

    Hi @BlueGosu,

     

    Do you have a lot of documents/document sets in your library? In that case have a look at the pagination settings of your get files (properties only) action.

     

    For a reference also look at this thread: https://powerusers.microsoft.com/t5/General-Power-Automate/SharePoint-Get-Files-Properties-Only-Exceeds-the-list-view/td-p/2240517

     

  • Verified answer
    BlueGosu Profile Picture
    51 on at

    Hello,

    I have already fixed this issue by using a "Send an HTTP request to SharePoint" and using the following uri:

    _api/web/GetFolderByServerRelativeUrl('Library Name/Folder Name/Document Set Name')/Files

    BlueGosu_0-1715129834675.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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard