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 / Form to Submit Multipl...
Power Apps
Answered

Form to Submit Multiple Users in a Person Field in SharePoint

(0) ShareShare
ReportReport
Posted on by 17

 I am currently using a PowerApp newform connected to a SharePoint list. I have a Person Field "Addl_Team" on SP that allows multiple entries.

 

I can get my multiselect-enabled combobox in my form to create an entry with multiple people, but if I go back into the app and I decide that I need to add another person to these selections, it overwrites my existing multi-selections with just that one new person I picked.

 

This is the code I have attached to my Update function of my DataCard:

ForAll(DataCardValue15.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & DataCardValue15.Selected.Mail,
            Department: "",
            DisplayName: DataCardValue15.Selected.DisplayName,
            Email: DataCardValue15.Selected.Mail,
            JobTitle: "",
            Picture: ""
})
I have the same question (2)
  • Verified answer
    Paramesh Ulthi Profile Picture
    17 on at
    Using a Form to Update Multiple Users in a Person Field in SharePoint
     
    When patching to a Person field, you need to send the whole schema. As you seem to be using the Office365Users.SearchUser function in the Items, this schema is different from that of the person field you are reading from / writing to, so the Update would be
    ForAll(
       DataCardValue15.SelectedItems As _Items,
       {
          Claims: "i:0#.f|membership|" & Lower(_Items.Mail),
          Department: "",
          DisplayName: _Items.DisplayName,
          Email: _Items.Mail,
          JobTitle: "",
          Picture: ""
       }
    )
    and the DefaultSelectedItems
    ForAll(
       ThisItem.Addl_Team As _Items,
       {
          Mail: _Items.Email,
          DisplayName: _Items.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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard