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 / Connecting related rec...
Power Apps
Unanswered

Connecting related records

(0) ShareShare
ReportReport
Posted on by 782

I'm trying to connect a bunch of different entities. Most are simple one to many relationships and those are fine. The part I'm confused on is connecting three levels of related entities.

 

What I mean by that is say my entities are Purchase Order, Businesses, and Contacts. My Businesses entity is just the business information for the places we would order from. But each of these businesses could have multiple contacts I want to keep track of. I don't want duplicate businesses (Best Buy - Craig Phillips, Best Buy - Janice Janiston), so I thought I would break the contacts out to its own entity. 

 

So you would start filling out your Purchase Order, and select the Business. The Business address and other info is brought in. Then I would ideally have a filtered lookup that only pulls in Contacts that have the selected Business. Also, it is necessary to be able to pick multiple contacts in a repeating table sort of way.

 

  1.  Fill out Purchase Order
  2. Select a Business through a Lookup to Business entity
  3. Subsequent Lookup to Contacts only shows the Contacts records that have the Business you selected
  4. Be able to select One or Many Contacts
  5. Show the selected Contact records on the Purchase Order record
  6. Be able to select the same Contact records on other Purchase Order records as well

 

Hopefully my explanation makes sense. Can anyone point me in the right direction for how I would accomplish this?

 

 

I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    Is this a canvas app or a model driven app?

    One way or the other you would have a purchase order entity and add a lookup field for business and a lookup field for contact.

     

    Don't bring address fields from business into purchase order--for good data quality, leave the address data on the business entity and display them on the form for purchase order. 

     

    For model driven apps you can do this with a quick view form from business (suggest using account entity, as that already has addres fields). Here is why you should never build a custom company/business entity, but use the OOTB account entity https://crmtipoftheday.com/1302/should-i-recreate-the-account-entity/

     

    for a canvas app where you have a drop-down for account, you can add a drop down for contact and filter it like the following:

     

    Filter(Contacts,_parentcustomerid_value =Dropdown1.Selected)

     

    If instead of canvas app you are doing model driven app, there is a special form property that can be set to filter a dependent lookiup

    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/special-field-properties-legacy

     

    Let me know if you are doing model driven and I will update with steps for that.

     

    @notj  if this answers your question, please mark it a solution

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard