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 / Using LookUp, Search, ...
Power Apps
Unanswered

Using LookUp, Search, and Filter Functions to get Column Value From SQL Connection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all,

 

I am creating a PowerApps that has a SQL connection.

 

In this app, I have a combo box (ComboBox6) that has column values from column named Nbr. The user would select the Nbr from this combo box, and based on that selection, I would like to have another combo box (ComboBox7) that takes that selected value, and then searches/filters down the values from another column in the same SQL table where the Nbr column for said record is the same as the selected Nbr in ComboBox6. Couple strange things, though...

 

Here is my Items property of ComboBox6, which is how I am able to get the values in the Nbr column

sqlError3.PNG

 

And looking at ComboBox6, you can see it works correctly:

sqlError4.PNG

 

 

So, when a user selects the Nbr they need, I want ComboBox7 to show me the Id of the record that has the selected Nbr. However, I noticed something interesting when trying to get the 'vDbo.vProcessOrder'[@Id] in combo box 7:

sqlError1.PNG

So, almost identical formula except it is for the Id column instead of the Nbr column.... but this is what I get inside of the combo box:

sqlError2.PNG

 

There are options to select, but they are all blank (there are no blank values in the Id column). What is going on here? It seems like it is returning a whole table instead of those column values. Why would this behave differently? How could I get the Id values?

 

Thanks,

Zachary

Categories:
  • AaronKnox Profile Picture
    514 Super User 2024 Season 1 on at

    Hi @Anonymous ,

    Make sure the correct fields are selected in the combobox layout:

    Capture1a.JPG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    They appear to be correct. The combo box fetches data, but everything is blank. It is almost like it is returning the whole table instead of the Id column values. Also, I just duplicated the combo box that is working correctly and Changed [@Nbr] to [@Id] and still am getting the same result.

     

     

    I did notice there is in fact a difference. Here is what that looks like for the combo box that is working correctly:

    sqlError5.PNG

     

    And here it is for the combo box that is not working correctly. I don't get an option to use the drop downs:

    sqlError6.PNG

     

    However, if I remove the [@Id] from the formula in the Items property, I get these options... which doesn't include Id... why would some columns not be available?

    sqlError7.PNG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Could it be that this is an unsupported data type? 

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard