Forum Discussion

miclarsen1's avatar
miclarsen1
Brass Contributor
Jan 28, 2021
Solved

HCWP - Custom query from selected site

Hi all,   I am trying to use the HCWP to fetch some content from outside the site collection where I have placed the HCWP.  For this purpose I am using a custom query in order to get content from ...
  • ganeshsanap's avatar
    ganeshsanap
    Jan 28, 2021

    miclarsen1 

     

    Yes, that is the link to list itself. You can filter it out using below query so that HCWP will only show the list items:

     

    Path:"https://tenant.sharepoint.com/sites/siteName/lists/listName" contentclass:STS_ListItem

     


    Please click Mark as Best Response 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.

Resources