web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / http request to sharep...
Power Automate
Unanswered

http request to sharepoint search

(0) ShareShare
ReportReport
Posted on by 297

Hi

 

I have a site collection 'intranet' with department sub-sites. The departments regularly post news and it is displayed in the News webpart on the front intranet page. 

We have a requirement to display the newest 10 articles on a large TV's in communal areas. 
I would like to query SharePoint for the latest news articles using power automate. The URL's for the 10 articles would be written to a file. 
Then outside of flow I will have a basic html page cycle through the 10 URL's. 

I's struggling to limit the GET request to only 10 items sorted by created date.

Can anyone help?

 

_api/search/query?querytext='IsDocument:True AND FileExtension:aspx AND PromotedState:2' 

 

 

Untitled.png

 

Categories:
I have the same question (0)
  • Verified answer
    sudharsan1985 Profile Picture
    1,325 on at
    Re: http request to sharepoint search

    Hi @nick9one1 

    Try to add the param like the below query

    https://tenantName.sharepoint.com/search/_api/search/query?querytext='IsDocument:True AND FileExtension:aspx AND PromotedState:2'&rowlimit=10

    Please try the above.

     

    Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
    -Sudharsan K...

  • nick9one1 Profile Picture
    297 on at
    Re: http request to sharepoint search

    thank you. 

    I also found this tool very useful

    https://github.com/pnp/PnP-Tools/tree/master/Solutions/SharePoint.Search.QueryTool

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard