What KQL can show a document library from Site Collection 1 to in a ListView Web Part in Site Collection 2?

frob 4,216 Reputation points
2022-02-10T00:46:38.093+00:00

Hi there
What KQL can show a document library from Site Collection 1 to in a ListView Web Part in Site Collection 2?

Thank you.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
0 comments No comments
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,776 Reputation points
    2022-02-10T01:54:05.62+00:00

    Hi @frob ,

    Do you mean use KQL query strings to filter in a Highlighted content web part and restrict the result to a document library in another site collection? Select the site and use below KQL query text:

    path: <Document Library URL>  
    

    Sample:
    173002-image.png

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful