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 / Combobox - that allows...
Power Apps
Answered

Combobox - that allows multiple people - setting the defaulted items when editing

(0) ShareShare
ReportReport
Posted on by 219

I have a combo box that is working fine for adding new people (one or more) to a SP list - the data is stored in the SP List as a single line of string. 

 

Now my struggle is editing the item. I'm not doing a "Form". It's an independent combo box

 

In my SP List you see this... (nice - 2 names in this case)
Region Capture.jpg

Now, my struggle is to show these people as the defaults in the combo box. As I want the person to be able to edit (add/delete) then I need to render in this case Richard and Karen as people fields in the combo box so the person can edit them.

I have done a single person combo box before but only ever in true Forms and now I've confused myself completely. What surprised is that the 

I figure I need to split the string by the delimeter and then build a person object... but I'm not sure how I do the split and the build at the same time. 

For the defaultedSelectedItems I did this...

 

 

 

RenameColumns(Split(varItem.'Marketing Team', ","), "Result", "Value")

 

 

 

Which displayed the 2 people's names in the combo box BUT here's where I think they are truly not treated as "people fields" so when I write on the path I do this...

 

 

 

'Marketing Team': Concat(CmbIFCContact.SelectedItems,DisplayName,", ")

 

 

 

and it ignores them because they are not people fields just regular text strings for each person. I know somehow I need to build the people fields but not sure how to do that with multiple people...(like this - but not exactly this).

 

 

 

Set(sample,{
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: Concatenate(
 "i:0#.f|membership|",
 Lower(varUser.Email)
 ),
 Department: "",
 DisplayName: varUser.FullName, 
 Email: varUser.Email,
 JobTitle: "",
 Picture: ""
})

 

 

 




Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @sasrsc1966,

    Do you want to assign person names to a Text column?

    Could you please tell me how you set the Items property of the Combo Box?

     

    I think you have something misunderstanding about the Person field. A normal Person field allowing multi select seems does not have existing delimiter between persons just like below:

    vqiaqimsft_0-1643089298645.png

    If you want to assign a Person format to the ComboBox DefaultSelectedItems property, please try steps as below.

    1). Add a Combo Box and set the Items property as below:

    Office365Users.SearchUser({searchTerm:""})

    2). I assume the varItem is a record from your list, and in my scenario I set this using the Gallery.Selected. I set the DefaultSelectedItems property of the Combo Box as below:

    ForAll(
     Split(
     varItem.'Marketing Team',
     ","
     ),
     First(Office365Users.SearchUser({searchTerm: Result}))
    ).DisplayName

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