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 / Creating form fields t...
Power Apps
Answered

Creating form fields that are a foeign key

(0) ShareShare
ReportReport
Posted on by 84

I have a Canvas app with SQL server connection data source. Let me define the problem by example.

Assume two SQL tables can join together with a foreign key like:

 

Table A

Account# | Name | Status

111     OfficeSuply     1

222    AppLicense      2

333    Hydro              3

 

Table B

StatusName | Code

Accepted      1

In process       2

Pending          3

 

 

Hence, the status on table A is a foreign key to table B having the actual value.

Now, when I create a form or gallery view to modify, update, or show the records, it will edit the numeral values and not the associated one on another table.

What is the solution for this?

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi  @AmirZolf ,

     

    A form in PowerApps is connected to a single data source, let's say Table A, so it will use all of the data source properties, like choice items to update any item in the data source. 

     

    In case you want to customise the UI to display information from Table B, you'll have to tweak the DataCardValue properties and the Update property of the DataCard to make that happen.

     

    Can you please share what you are working on and what issues you are running into?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @AmirZolf ,

     

    An easy method to implement this is in the field Data Card using a Combo box where you can populate its Items with the other table entries (Table B), and set the display field to the StatusName column.

     

    For the Update of the Card, set to Combobox.Selected.Code as per your Table B column name.

     

    Hope this helps.

     

    Best regards,

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard