Forum Discussion
How to display multiple lists on 1 list or a view?
chanpion13 This is not possible using default List web part.
If you have used a site column (specifically to use managed property) for your status column which indicates completed/incomplete list items, you can achieve this using Highlighted content web part by specifying the necessary filters using managed property.
Else, you have to develop a custom solution using SharePoint Framework.
Please click Mark as Best Response & Like 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.
- chanpion13Apr 27, 2021Copper ContributorOh wow this is brilliant and what I was looking for. Can I get it so it just filters the search to sharepoint lists? specific ones or all of them.
- ganeshsanapApr 28, 2021MVP
chanpion13 Highlighted content web part uses KQL for custom filter queries. So you can use KQL queries to return the list items from specific SharePoint lists or all lists.
To get items from specific lists, you can use query like:
Path:"https://siteUrl/Lists/List1" Path:"https://siteUrl/Lists/List2" Path:"https://siteUrl/Lists/List3" contentclass:STS_ListItemTo get items from all SharePoint lists (& to exclude documents) use query like:
contentclass:STS_ListItemYou can also add additional filters based on managed properties as per your requirements. Also, check below documentation related to KQL:
Keyword Query Language (KQL) syntax reference
Please click Mark as Best Response & Like 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.
- jeromedewaeleSep 26, 2023Copper Contributor
ganeshsanap This works using the "path" function for me but how can you choose the columns to display in the view? So far I have this syntax:
path: "https://mysite/sites/site/Lists/Table1"
path: "https://mysite/sites/site/Lists/Table2"
contentclass:STS_ListItem)This returns the Title, Modified and Modified by column of both tables but what if I want to show the Due date column which is present in both lists?
Many thanks!