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 / One-To-Many relationsh...
Power Apps
Unanswered

One-To-Many relationship with same table

(0) ShareShare
ReportReport
Posted on by 323

Hi,

 

I am trying to create a one-to-many relationship between records in the same table and dataverse converts that relationship into Many-To-One. How do I do this.

 

prathyoo_0-1702287884189.png

 

On clicking done, the relationship gets created as Many-to-one instead -

 

prathyoo_1-1702287962787.png

 

When I click the Edit button on the relationship, this now shows the reverse of what I had entered earlier during creation -

 

prathyoo_2-1702288025155.png

 

Any help is greatly appreciated.

 

regards

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @prathyoo I think this is a result of the UI of the maker portal playing tricks. You have indeed created a one-to-many relationship. It's just the user interface that's only showing the relationship in the reverse direction. If you open your customisations in the classic experience, you'll be able to visual the relationship in both directions.

  • psreek Profile Picture
    323 on at

    Hi,

     

    As mentioned, the modern UI shows this - 

    prathyoo_0-1705605789452.png

     

    But the classical UI shows two relationships - 1:N and N:1

     

    The 1:N relationship looks like this -

    prathyoo_1-1705605923845.png

     

     

    The N:1 relationship looks like this - 

     

    prathyoo_2-1705605987298.png

     

     

    I have no clue why the N:1 relationship exists as I  needed 1:N relationship.

     

    Now, when we try to show the Prior Events as a subgrid of the main Event form, we are able to associate an event to the parent event using "Add Existing Events"

     

    prathyoo_3-1705606141627.png

     

    prathyoo_4-1705606197779.png

     

     

    But when we try to disassociate an event, such an option is not available but we only have Delete Event which seems to delete the main event record itself. 

     

    prathyoo_5-1705606305682.png

     

    We get a feeling this has to be due to the way the relationship has been created by the studio.

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @prathyoo As the Name property of the relationship shows in the Classic experience, it's physically the same relationship component you're looking at from opposite directions: from the one-to-many end and then from the many-to-one end. 

     

    The sort of relationship essentially enables you to create child records that are related to a parent record. This is achieved by way of populating a lookup column on the child record which references the parent record. This lookup column is roughly the equivalent of a foreign key field in database terms.

     

    If you open up a record in the Model Driven App, you should be able to see via the Associated View (or a subgrid on the form if you have configured it this way), all the child records associated to the parent. From the subgrid/associated view you should be able to open, view, edit or delete any of the child records (if you have permissions to do so as a user), using the corresponding buttons. The buttons on the main command bar relate to actions to be performed on the main record itself that you have opened.

     

    You can disassociate a child record from it's parent record, by removing the value from the lookup column (foreign key), or you can associate it with another parent record by changing the value in this lookup column.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard