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 / Sharepoint URl Get HTT...
Power Automate
Unanswered

Sharepoint URl Get HTTP request seach and filter

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I am trying to search and filter for certain files in SharePoint from PowerApps. I have currently got a search setup and it retrieves the main folder and all the subfolder files. I want to only retrieve files from certain subfolders within the Mainfolder and was wondering is there a way to do this. 
I have tried adding certain filters ie filtering the path to see if it contains folder names and also substringof but none of them seem to work. I am adding these filters to the end of the URI below "$filter=Path eq *Subfolder4* or Path eq *Subfolder 2* or Path eq *OtherSubfolder*" is there a way to do this as i dont want to retrieve any folders just the files in those folders

Kratos1_0-1697463006535.png

 

 

Any help would be much appreciated.
Thanks

Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,463 Super User 2026 Season 1 on at

    Hi @Kratos1 

     

    Try as below

     

    $filter=startswith(FileDirRef,'/MainFolder/Subfolder4') or startswith(FileDirRef,'/MainFolder/Subfolder2') or startswith(FileDirRef,'/MainFolder/OtherSubfolder')

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

  • Kratos1 Profile Picture
    12 on at

    Hi @Srini007 ,

    The Uri search helps locate the "MainFolder" and brings this up as one of the search results based on the searched text so I cant use "MainFolder" in the filter for the structure if we don't know what the main folder is. 

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard