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 / Combo Box default mult...
Power Apps
Unanswered

Combo Box default multi selection

(1) ShareShare
ReportReport
Posted on by 4

 

 

I've built a Combo box for person selection (name and e-mail) and i'm using this code in the DefaultSeletedItems:

 

ForAll(
 Concatenate(
 Filter(
 Office365Users.SearchUser({searchTerm:varSelectedItem.COLUMN.Email})
 ,JobTitle<>Blank()).DisplayName
 ,Char(13)
 ,"<"
 ,Filter(
 Office365Users.SearchUser({searchTerm:varSelectedItem.COLUMN.Email})
 ,JobTitle<>Blank()
 ).Mail
 ,">"
 )
 , {Result: ThisRecord.Value}
 )

 

 

It works when i only have one person information coming out of the gallery and into the varSelectedItem. But when i have multiple people, i can't display everyone's names and e-mails.

Can anyone help me out?

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Thiago_PLima - assuming your data source is SharePoint, are you using an EditForm control to save your data?

  • Thiago_PLima Profile Picture
    4 on at

    To submit changes, yes. But using a lose combo box to display information and user make changes before submitting

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Thiago_PLima - sorry I do not understand what you're trying to do.

     

    Based on your description, you have a multi-select people field in your data source (assuming SharePoint). You have a Gallery control and on the OnSelect property you're declaring a variable called "varSelectedItem".

     

    You want to populate a ComboBox control with the multi-select people column from the selected record in your Gallery. 

     

    Is that correct?

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard