Forum Discussion

Peki72's avatar
Peki72
Copper Contributor
Jan 19, 2025

How to display a SPList in a PnP - SearchResult ?

Hi,

I would like to try if it is possible to display just the content of a sharepoint list in a PnP- SearchResult. Is that possible? I guess i have to put something in the field after keyword {SearchTems} ?

Gr. P

  • Hi Peki72 , check something like this -> {searchTerms} Path:"https://<yourtenant>.sharepoint.com/sites/<yoursite>/Lists/<yourlist>" contentclass: STS_ListItem, it should return list items.

     

Resources