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 / Help with dropdown loo...
Power Apps
Answered

Help with dropdown lookup on foreign key

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I am new to PowerApps and have been trying to work out the following:

 

Drop down list Organisation displays OrganisationName and is linked to Organisation table, which contains fields ID, OrganisationName.

 

Drop down list Employee is linked to Employee table which contains columns EmployeeName, OrganisationID.

 

Organisation.ID = Employee.OrganisationID

 

How do I set Employee drop down so that when I select an OrganisationName in the Organisation drop down, it does a lookup on Organisation.ID against Employee.OrganisationID and shows me only EmployeeName for the selected OrganisationName.

 

Thank you

 

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    You can add a filter to the items property of the Employee drop down to show just the users in the Organisation selected in the Organisation drop down (ddOrganisation).

     

    Example: Filter(EmployeeOrganisationID = ddOrganisation.Selected.ID)

     

    This example assumes the Organisation drop down returns a record with the ID and OrganisationName. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous , I don't think the "foreign keys" is not an actual relationship PK and FK diagram you have built in SSMS or SQL right? or do you have 2 separate tables with the same column listed so that it becomes a one to many relationship? in anycase, Filter will work but you might have issues with commands like Patch or during the write into your database. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard