KQL for retrieving list items

Frequent Contributor



I am trying to use the highlighted content webpart to show items from a list but I cannot get it to work at all. 


The list is called "Tools" and in the KQL syntax I am trying to use


path: "<site>/teams/Tools" but nothing shows up. 


I would like to use this webpart to show items based on target audience value set in the list but I am failing at the first hurdle!

Any help would be appreciated

1 Reply

@Dhiran Gajjar Use query in below format, it works for me: 


contentclass:"STS_ListItem" path:"https://contoso.sharepoint.com/sites/SPConnect/Lists/ChildList"




Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.