Filter a List from the Query String

From SharePoint Knowledge Base

Jump to: navigation, search

Here's a cool trick. It's possible to pre-filter list views using query string parameters. The syntax is pretty simple:

http://<site>/Lists/AllItems.aspx?FilterField1=Status&FilterValue1=Approved

This will automatically apply a filter to the Status Field and only show items with a value of Approved. You can add multiple fields by simply incrementing the counter for each argument:

AllItems.aspx?FilterField1=Status&FilterValue1=Approved&FilterField2=Author&FilterValue2=Glen Cooper
Personal tools