Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vD8U9ZxpQo83txn8Ic+6l3
Power Apps - Building Power Apps
Unanswered

Building 2 large sharePoint lists which have many to many relationship between them

Like (0) ShareShare
ReportReport
Posted on 10 Aug 2023 16:23:25 by 3,502

We have 2 SharePoint lists:-

 

1) Assets

 

2) Spare Parts

 

Now a Spare Part can be linked to more than one Asset and an Asset can have more than one Spare Part. Now the straight forward way to implement this inside SharePoint is to create a lookup field which allow multiple selection either inside the Assets list or inside the Spare Parts list. but this approach has the following Disadvantages :-

 

1) The Lookup column which allow multiple selection can not be indexed inside SharePoint

2) Filter the Assets based on the spare part or Filter the spare parts based on the Asset will not be delegable inside power app.

 

so what is the correct appraoch to overcome the above 2 limitation?

 

For example i am thinking instead of creating a lookup field, to create a third list which represents the many to many relation, and store the AssetID and the SparePartId inside it. in this case we can overcome the above 2 limitations.

 

any advice/comments? on my issue and the appraoch i am proposing?

 

Thanks

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on 10 Aug 2023 at 17:12:31
    Re: Building 2 large sharePoint lists which have many to many relationship between them

    Using a 3rd Sharepoint list as a junction or intersection table seems like a great solution to your problem. This introduces programming complexity but it also provides a scalable solution that will allow you to delegate and to index as you will need. Here is a post discussing similar use case. Here. 

     

    The List may have columns like this.. you can also include any meta data you may want access to.

    1. AssetID: A lookup column that links to the Asset list.
    2. SparePartID: A lookup column that links to the Spare Parts list.

    Each record in this list represents a link between an Asset and a Spare Part.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 20

#2
BCBuizer Profile Picture

BCBuizer 10 Super User 2025 Season 1

#2
LC-26081402-0 Profile Picture

LC-26081402-0 10

Overall leaderboard
Loading started