SOLVED

KQL for retrieving list items

Iron Contributor

Hi,

 

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
best response confirmed by Dhiran Gajjar (Iron Contributor)
Solution

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

 

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

 

Output

ganeshsanap_0-1684335049210.png


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.

1 best response

Accepted Solutions
best response confirmed by Dhiran Gajjar (Iron Contributor)
Solution

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

 

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

 

Output

ganeshsanap_0-1684335049210.png


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.

View solution in original post