Highlighted Content Web Part Custom Query - Get Documents from Folder

 Below are my Library with "Folder 1" in my Dev Sitecollection



I want to Get This Folder 1 Files in to my another site collection Site page.


in my Another site collection called "Dev Team" --> in site page i have added Highlighted content web-part and Select Custom Query Option., Soruce Will be Select sites and search your site collection and checked it.


in KQL Query box use below query

contentclass:sts_listitem AND IsDocument:True AND Path:"https://*****.sharepoint.com/sites/Dev/Shared Documents/Folder 1/"



Now Save as Draft page and wait for few seconds .


Thats All ☺☺☺

Comments