Filter a Listwebpart from the query string

Michael Anklin 1 Reputation point
2022-03-14T14:04:13.003+00:00

I am rather new in Sharepoint, using Office365 Sharepoint modern. I googled now for one week and tried many things but I can not bring it to work.

I have a list: /sites/QMSTestMichi/Lists/Prozessinformationen/AllItems.aspx
182819-image.png

I can filter this list with a query parameter: sites/QMSTestMichi/Lists/Prozessinformationen/AllItems.aspx?FilterField1=Title&FilterValue1=12
182862-image.png

That works.

Now I have a page that I want to call with parameters in the URL then showing me the data from that list with the filter values and a document library directly filterd.
My Idea was to show a listwebpart filtered, then the rest I do with dynimic filters from the listwebpart.
182884-image.png

The issue is that my listwebpart is newer filtered.

I have read many blogs how to do this in the classic sharepoint, but in modern sharepoint I dont get it to run.

I would really appriciate to get some hints how to show data in a site using a filter parameter to show the data only according the query string parameter.

Thanks for any posts a lot.

Microsoft 365 and Office SharePoint For business Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,316 Reputation points
    2022-03-17T09:10:29.793+00:00

    Hi @Michael Anklin ,

    Welcome to Q&A Forum!

    According to your description, we suggest that you can use Dynamic filtering to achieve your needs. More information, please click this blog.

    Please follow the steps:

    1.Create a Site Page

    184073-p1.jpg

    2.Add a List web part and select the [Prozessinformationen] list

    183930-p2.jpg

    184074-p3.jpg

    3.Add a Document library web part and select the [ProzessDokumentBibliothek] Document library

    184075-p4.jpg

    184076-p5.jpg

    4.Click "Edit web part" to edit [ProzessDokumentBibliothek]

    184055-p6.jpg

    5.On the Panel, enable Dynamic filtering

    184101-p7.jpg

    6.Then, configure as shown below

    184028-p8.jpg

    7.Apply

    8.Publish/Republish page

    9.Here is my test:

    184000-test4.gif

    Thanks,
    Echo Du

    ============================================

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.