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 / How to add a relations...
Power Apps
Answered

How to add a relationship table to a canvas app?

(0) ShareShare
ReportReport
Posted on by 664

I created a N:N relationship between two tables. My understanding is that Dataverse creates a third table to store the related items.

 

My tables are called Books and Authors. I have a dropdown list with all Books and when a user selects one, I want to display related author(s) in a gallery below.

 

How do I access this table in a canvas app? Do I need to explicitly bring it in with Add Data in the Data pane? I can see the Relationship table name in the relationship settings on my table. I'm trying to plug that value into the items property of a gallery just to see what I'm working with but I can't get anything to resolve.

 

Does anyone have an example they could point me to on what this filter would look like? Thanks in advance.

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    I am using two different SharePoint list which are linked with each other through parent id.

    1. Candidate

    2.Submission

     

    1 Candidate can have many submission.

    I added both the list in powerapps. And here's how it works:

    a45.jpga46.jpg

     

  • Cooper01 Profile Picture
    664 on at

    Thanks for the reply @zmansuri but I am specifically looking to access N:N relationships in Dataverse which don't seem to work quite the same way as lookup columns in either Dataverse or SharePoint.

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    I am not using lookup columns. 

    Sorry i couldn't be more helpful

  • Verified answer
    Cooper01 Profile Picture
    664 on at

    This was not as complex as I was making it. I was able to get this working by created a collection in the OnChange of the drodown list. Still not sure about accessing the relationship table but you can get at the related items using dot notation, similarly to how you would reference a column. OnChange property

    ClearCollect(colRelatedRows, ddlBooks.Selected.Authors)

     I found this blog post helpful: https://powerapps.microsoft.com/en-us/blog/option-sets-and-many-to-many-relationships-for-canvas-apps/

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard