Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Accessing the content of specific files using Send an HTTP request to SharePoint and Search REST API

(0) ShareShare
ReportReport
Posted on by 20

Hello all,

 

I'm developing a power app that searches for file contents on a SharePoint library by sending an HTTP request to SharePoint and  usign the Search REST API. The input value is a text inputted through a text box:

 

GustavoFerreira_1-1692645007876.png

 

GustavoFerreira_0-1692644670014.png

Currently, I'm able to acess the content off all documents stored in this library.  What I'd like to do, in fact, is to access only the content of files inside a specific folder in this library. How can I do that?

  • GustavoFerreira Profile Picture
    GustavoFerreira 20 on at
    Re: Accessing the content of specific files using Send an HTTP request to SharePoint and Search REST API

    Hello @v-xiaochen-msft,

     

    Thank you very much for the response.

     

    The solution you proposed worked!

     

    Best Regards,

     

    Gustavo.

  • Verified answer
    Re: Accessing the content of specific files using Send an HTTP request to SharePoint and Search REST API

    Hi @GustavoFerreira ,

     

    Please try this

    vxiaochenmsft_0-1692675157227.png

    vxiaochenmsft_1-1692675249139.png

     

    _api/search/query?querytext='***+path%3Ahttps%3A%2F%2F***.sharepoint.com%2Fsites%2F***%2FShared%2520Documents%2FTest'

    Best Regards,

    Wearsky

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics