web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Many to Many relations...
Power Apps
Answered

Many to Many relationship with additional 'Meta' information

(0) ShareShare
ReportReport
Posted on by 57

I want to create a data model with a few n:n relationships

  • A contact could be assigned to various companies and a company could have various contacts
  • A table could contain addresses that can be linked to either companies or contacts, so that when the address changes, it is automatically changed for relevant contacts and organizations

 

I would like to add some "Metainformation" per company and contact link or address to contact or company link, such as

  • Primary organization, Former employer, Board-style membership etc. for the company/contact relations or
  • Primary address, Invoice Address, Corporate Address, Visiting Address, etc. for the address relations.

I also may want to add just a remark or a tag to the link, which is why connections (I think) would not work.  It also does not feel right from a design point of view. (Let me know if I am wrong, here).

 

When a n:n relationship is created in dataverse, a relationship table (e.g. contact<->company) is automatically created.  

It would be in my opinion the most elegant to just add a column to the relationship table storing this information.

However, this does not seem to be possible (grateful for any advice that proves this assumption wrong :))

 

Another option would be to create an additional table with the GUID of the relationship table and the metainformation as additional columns, but I also do not know how to do this.

 

The "brute force" approach would be to create the relationship table manually and have 1:n relationships to the two tables I want to join.   This would - however - require to pass to a canvas app instead of a model driven app.

 

Question:  Is the last approach (creating the relationship table manually) the way forward or ist there something more 'elegant' exploiting the functionalities of dataverse and powerapps.

 

 

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    you manually create the table that act as the N:N and you will create two lookups, one pointing to table A and another to table B. Doable with model-driven, but you need to maintain this custom table.

  • mhoelling Profile Picture
    57 on at

    @GuidoPreite : thank you.  This is fine as long as I know it is a common way to go forward.  I just wanted to be sure not to do rebuild something complicated that is already built into Powerapps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard