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 / How to load SQL table ...
Power Apps
Unanswered

How to load SQL table field values into a Drop down control

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am working on developing a mobile app containing about 4 fields. The data source is sql table  (on prem), connected with gateway connection and added as data source in my app. See screenshot below for the dd control properties. 

learningflow_0-1631645882756.png

 With this config, it loads all values from field 'personnelfirstname' into the dd. However, I would like to load 'PersonnelFirstName PersonnelLastName' into the dd as concatenated value with space. Can someone help me with the expression to set for items property, this should be simple enough but I am unable to figure it out. Also, once this is configured, I would like to display 'PersonnelID' in a label based on the selection in dd, any help on this would be greatly appreciated, thanks in advance. 

Categories:
I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @Anonymous,

     

    You can try using

     

    Choices(SqlTableName.FieldName) in the items of DD

     

    Please mark as Answer if it is helpful and provide Kudos

    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • Community Power Platform Member Profile Picture
    on at

    Thanks @rampprakash , however it does not work. 

    learningflow_0-1631646423659.png

     

  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @Anonymous 

    You can do this by setting the Items property of your dropdown to the following:

    AddColumns(tblPersonnel, 
     "Fullname",
     PersonnelFirstName & " " & PersonnelLastName 
    )

    To show the PersonnelID in a label, you would set the Text property to the following:

    Dropdown1.Selected.PersonnelID

    Note that if the label shows up blank, you may need to explicitly specify the column names by amending the Items property of your dropdown like so:

     

    ShowColumns(AddColumns(tblPersonnel, 
     "Fullname",
     PersonnelFirstName & " " & PersonnelLastName 
     ),
     "Fullname",
     "PersonnelID"
    )
    

     

     

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    thanks @timl , I tried your approach for the items property of dd. However its not loading full name. Please see below. Also, what is 'Fullname' represent here?

    learningflow_0-1631647145271.png

     

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @Anonymous 

    Fullname is the field that would return the concatinated value of PersonnelFirstname and PersonnelLastName.

    Could you confirm that you've set the Value property of the dropdown control to Fullname?

  • Community Power Platform Member Profile Picture
    on at

    Excellent @timl , thanks so much for your help, it worked. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard