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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse Table relati...
Power Apps
Answered

Dataverse Table relationship

(0) ShareShare
ReportReport
Posted on by 22

In dataverse I have table A,B,C and table A and B have 1:N relationship and tables B and C have 1:N relationship as well. I want to get  a column value in table A to auto-populate and display in Table C. I have a quick view in table B to show the field from table A. How do I achieve that.

I have the same question (0)
  • gulshankhurana Profile Picture
    1,397 Moderator on at

    Hi @Echo4674 

     

    Is it a model driven app or canvas app you're building?

     

    Kind regards

     

  • Echo4674 Profile Picture
    22 on at

    Its Model driven app

  • Linn Zaw Win Profile Picture
    2,996 on at

    @Echo4674 

    You can create a new simple main form in Table B which has the Quick View form to show the field from Table A. Then, embed that new form in Table C with the Form Component control and show it.

     

    Here are some useful links about Form Component Control

     

    Here's the outcome

    LinnZawWin_0-1693939222959.png

     

    How it looks without populating the lookup B on table C.

    LinnZawWin_1-1693939248579.png

     

    The main form of Table B itself with the Quick View to the fields from Table A.

    LinnZawWin_2-1693939334044.png

     

     

     

  • Federico Pelliccia Profile Picture
    143 on at

    Do you want just show the value from table A or do you want to set value on a column on table C?
    If you want populate the field on the table C, you can just create an easy javascript resource with a fetchXml inside it. When you load your form on create, you can read that value through your fetch and populate the field on table C

  • Echo4674 Profile Picture
    22 on at

    I want to get the value from Table A and display it in Table C. Javascript seems the way, Do You have any sample script by any chance or resource recommendation? Thank you.

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @Echo4674 ,

    I have created a number of applications with this situation.  I normally carry the A table to the C table in the mappings or in real-time workflows.  I know you shouldn't have to since the relationship is two levels up but it really makes it a lot easier.  

     

    What I normally do:

    1. Add the lookup of A on the C table.
    2. On the relationship from B to C in the Mapping, I will add the A to map from B to C table

    This is really nice when working in Model-Based Power Apps because you can now see A and B lookups on C table.  The only challenge here is if B changes relationship to have a different parent (i.e. moving from A to E or something like that), this will not update the A value on the C table.  Normally this is not the case with what I am working with and you could always write a Power Automate Flow to update this relationship if needed.

     

  • Verified answer
    Linn Zaw Win Profile Picture
    2,996 on at

    @Echo4674 

    Just for display purposes, you don't need any JavaScript. You can achieve it by configuring the Quick View form and the Form Component control as in my reply above.

     

     

  • Echo4674 Profile Picture
    22 on at

    Hi @dpoggemann thank you ffor the help and One more question, I am having difficulty with the relationship adding A to map from B to C table

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    You can do this in the "Mappings" in the relationship.  Go into the classic interface and into the 1:N relationship from B to C and you will see "Mappings" as an option on the left navigation.  This is where you add...

     

    See below...

    Screenshot 2023-09-08 at 12.17.08 PM.png

     

     

  • anacarolinagr Profile Picture
    48 on at

    @LinnZawWin  How can I do that in Dataverse for Teams? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard