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 / Custom Office365 Peopl...
Power Apps
Answered

Custom Office365 PeoplePicker Listbox: How to get the selected value?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys,

 

i have spent 3 to 4 hours now figuring out how i can extract the value of the Listbox i have created, this is not a multiple selection Listbox. Here are a few details:

 

* Listbox is to behave like a people picker. It's items properties is: 

If(!IsBlank(TextInput1.Text), Office365Users.SearchUser({searchTerm:TextInput1.Text}).DisplayName)

* I have tried to transfer the value of the selected data via the OnSelect property of the listbox by trying to give that value to a variable and other available attributes for listbox5. it turns out it is returning a record or a table, something a normal TextInput box would not accomodate.

 

set(selectedData, listbox5.selecteditems.value)

 

* i tried using Text() but it's not working. I just need to get the selected value from the listbox and throw it to a variable or to a textinput control. or is there any other way to simplify a people picker listbox?

 

Thanks!

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at
    What error do you get with your code? Try Set(selectedData, listbox5.selecteditems.DisplayName)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Eka,

     

    i just tried: (selectedData, listbox5.selecteditems.DisplayName) and set Textinput1 to "Default = selectedData" I am getting "We didn't find any data." and the Data Type: Table notification.

     

    if i can somehow convert that data Type Table to Text or something. i tried concat but i am not really sure how to use it in this case.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i got what i need.

     

    instead of a listbox, i ended up using a combobox instead. 

     

    https://www.youtube.com/watch?v=-UKk6bXUW-g

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard