Pass a Filter Via Query String to a Web Part in a Modern Site Page

Tom Molskow 381 Reputation points
2023-05-15T14:18:41.43+00:00

Hello Community,

I am working in SharePoint Online with SharePoint Modern Pages. I have some list view web parts on the modern page, and I would like to pass a filter to one of those web parts with a query string. Is this possible? If so, what would the query string look like?

Thanks!

Tom

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,597 questions
0 comments No comments
{count} votes

Accepted answer
  1. Haoyan Xue_MSFT 22,466 Reputation points Microsoft Vendor
    2023-05-17T01:52:12.6133333+00:00

    Hi @Tom Molskow ,

    Sorry for overlooking this.

    Based on the official document, embed with report web part in SharePoint Online doesn't support Query String (URL) Filter now.

    After my internal and external searches, unfortunately, there is currently no way to Pass a Filter Via Query String to a Web Part in a Modern Site Page.

    https://sharepoint.stackexchange.com/questions/302849/its-possible-to-filter-sp-modern-page-content-with-url-params


    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

1 additional answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 22,466 Reputation points Microsoft Vendor
    2023-05-16T05:58:35.4833333+00:00

    Hi @Tom Molskow ,

    Please refer to this article: To Filter SharePoint List View Using Query String Web Part

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    Here are steps:

    1. Insert the Query String (URL) Filter web part and list view Web Part to the page.
      on your page.
    2. Configure the "Query String Filter" Web Part by clicking the "Open the tool pane" and the list view Web Part.
    3. Connecting "Query String Filter" Web Part with the list view Web Part.
    • Under the connection options choose "Send filter values to".
    • Select your field name that you want to filter on.

    Finally we are able to filter the list view Web Part in the page with the "Query String" in the URL.


    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.