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 / Saving people or perso...
Power Apps
Answered

Saving people or person via combo to people or person column

(0) ShareShare
ReportReport
Posted on by 834

having a combobox where i select people and groups (but really only people and no groups).

having a colum that is "people or groups" and using its update property to capture data from the combobox mentioned above with this code:

{
 Claims: "i:0#.f|membership|" & ('combo'.Selected.Result),
 DisplayName: 'combo'.Selected.Result,
 Email: 'combo'.Selected.Result,
 Department: "", 
 JobTitle: "", 
 Picture: ""
}

Problem is that this will save only one person, cant figure out how to save multiple

Categories:
I have the same question (0)
  • JayMagness Profile Picture
    1,663 on at

    HI,

     

    Is this is SharePoint?

     

    I will send you my contact information

  • WarrenBelz Profile Picture
    156,458 Most Valuable Professional on at

    Hi @Sifu ,

    You would use 

    ForAll(
     YourComboBoxName.SelectedItems,
     Patch . . .

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Sifu ,

    Could you please share a bit more about the formula you typed within the Items property of the ComboBox?

    Could you select multiple options within the ComboBox?

    Further, could you please share more details about the result the 'combo'.Selected.Result formula returned? Is it a email address or a Display name of the user?

     

    According to the needs that you mentioned, I think you want to save the multiple selected users within the ComboBox back to the Person type column in your SP List, is it right?

     

    1) If the 'combo'.Selected.Result formula result is the email address of a selected user, please modify your formula as below (set the Update property of the Person field data card in your Edit form😞

    ForAll(
     'combo'.SelectedItems,
     {
     Claims: "i:0#.f|membership|" & Lower(Result),
     DisplayName: LookUp(Office365Users.SearchUserV2().value, Mail = Result).DisplayName,
     Email: Result,
     Department: "", 
     JobTitle: "", 
     Picture: ""
     }
    )

    Note: You need to add Office 365 Users connector as data source in your app firstly

     

    2) If the 'combo'.Selected.Result formula result is the DisplayName of a selected user, please modify your formula as below (set the Update property of the Person field data card in your Edit form😞

    ForAll(
     'combo'.SelectedItems,
     {
     Claims: "i:0#.f|membership|" & Lower(LookUp(Office365Users.SearchUserV2().value, DisplayName = Result).Mail),
     DisplayName: Result,
     Email: LookUp(Office365Users.SearchUserV2().value, DisplayName = Result).Mail,
     Department: "", 
     JobTitle: "", 
     Picture: ""
     }
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard