Forum Discussion

Lam01007's avatar
Lam01007
Copper Contributor
Dec 12, 2019

Join 2 SharePoint List

Hi All,

 

I would like to join 2 lists and display in a single list.

Let say, I have following 2 lists:
Product

IDProduct NameUnit Price
1A

100

2B200

 

Order

IDProductID (Foreign Key)Quantity
115
214
3220

 

Finally, join the above 2 list by the ProductID, and output into following result list:

OrderIDProduct NameQuantityUnit Price 
1A5100
2A4100
3B20200

 

It should be achieved by using the "Content Query Web Part (CQWP)" in previous version of SharePoint, but how can I achieve the above in the Modern SharePoint Online? by using Highlight Content Web Part? or use client-side script to call REST API to join the list and display in a html table?

 

In advance, can I also apply the SharePoint default list feature into the result list, e.g. Search, sort/filter by column

 

Many thanks,

 

Lam

 

1 Reply

Resources