Skip to main content
Community site session details

Community site session details

Session Id : HKdP5g0v84/xSidprc3biu
Power Apps - Microsoft Dataverse
Answered

Expand N:N intersect table with Dataverse Web API

Like (0) ShareShare
ReportReport
Posted on 15 Nov 2022 15:41:34 by 559

Hi All,

 

Lets say i have 2 tables

  • Employee
  • Training

These are in a N:N. When i query the Intersect table with EmployeeID = ID, it returns me all intersect records from that employee. Is it possible somehow to expand this query to hold all data about lets say the trainings it returned?

Best Regards,

Anthony

Categories:
  • Verified answer
    Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on 15 Nov 2022 at 21:18:44
    Re: Expand N:N intersect table with Dataverse Web API

    with the OData Web API you don't need to start with the intersect table. Start with the employee table (so you put the filter there for employee id) and you expand the N:N relationship in order to get the training columns.

  • AnthonyD Profile Picture
    559 on 15 Nov 2022 at 17:58:03
    Re: Expand N:N intersect table with Dataverse Web API

    I am Using OData queries. I don't think i can use a $expand on a Intersect table as i tried it. That is why i am asking here if there may be another way to get the related data in 1 query

  • Community Power Platform Member Profile Picture
    on 15 Nov 2022 at 17:06:29
    Re: Expand N:N intersect table with Dataverse Web API

    @Anthony_Dob If my previous post solved your question, please consider clicking on "Accept as solution" to help the other members find it more quickly. Thanks! 🙂

  • Community Power Platform Member Profile Picture
    on 15 Nov 2022 at 16:08:40
    Re: Expand N:N intersect table with Dataverse Web API

    Are you using a FetchXML query to do that? If so, I think you may need an (inner) join between your intersect table and your Training table to achieve what you're asking.

     

    If you're using OData, I think you may need to use $expand (https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/retrieve-related-entities-query)

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete