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 / searching a specific f...
Power Automate
Answered

searching a specific folder for http GET request

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In my Flow for a "Send An http request to Sharepoint"

 

I have the search URI  working fine :

 

_api/search/query?querytext='@{replace(variables('SearchQuery'),'''','')}'&clienttype='ContentSearchRegular'&selectproperties='UniqueId, Title, OriginalPath'&rowlimit=@{variables('RowLimit')}&startrow=@{variables('RowsToSkip')}

 

what i need: 

i need to only search in a specific folder 

_api/web/GetFolderByServerRelativeUrl('/"Communications%20Deck%20Platform"')/files

 

I cant figure out where to place this additional address part

Thnks

dave

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    To search in the specific folder you can specifying full folder path with site: managed property. Like this:

    http://{site url}/_api/search/query?querytext='title:{query_text}+site:"{absolute path to folder}"'


    Example:

    http://server1/_api/search/query?querytext='title:Document*+site:"http:%2f%server1%2fLibrary2%2fFolder3"'


    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    can you give me an example with the data i have supplied in tis thread ?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-litu-msft this is still not working ?

    _api/search/query?querytext='@{replace(variables('SearchQuery'),'''','')}'&clienttype='ContentSearchRegular'&selectproperties='UniqueId, Title, OriginalPath'&rowlimit=@{variables('RowLimit')}&startrow=@{variables('RowsToSkip')}+site:"https://xxxxx.sharepoint.com/sites/Sales/Communications%20Deck%20Platform"

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    got tnhis to work.

    _api/search/query?querytext='@{replace(variables('SearchQuery'),'''','')}+site:"https://xxxxxx.sharepoint.com/sites/Sales/Communications Deck Platform"'&clienttype='ContentSearchRegular'&selectproperties='UniqueId, Title, OriginalPath,Rank,Path'&rowlimit=@{variables('RowLimit')}&startrow=@{variables('RowsToSkip')}

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 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard