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 / how to patch person co...
Power Apps
Unanswered

how to patch person column from combox?

(0) ShareShare
ReportReport
Posted on by 127

I have spent two days tring to solve this issue but unfortunately I couldnot.

Here i have sharepoint list Members with column group and emails.

emails is  a person data type and the column  is multi email enabled.

Now I want to save from combox user lists to my list.

Office365Users.SearchUser({searchTerm:Combobox1.SearchText}).DisplayName

 

I have put the above code in the combox, and displays the list of users available in my organization.

Multiselect of the combox is enabled.

Now I want to patch the selected persons from combox into my list.

ClearCollect(emailTo, Combobox1.SelectedItems); //collect current attendees

Collect(emailTo, 
{
'@odata.type': "#Microsoft​.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & User().Email,
DisplayName: User().FullName,
Email: User().Email,
JobTitle: "",
Picture: ""
});

Patch(members, Defaults(members), 
{
 group:gourptxt.Text,
 emails:emailTo

}
);

 the above code always saves my emails, eventhough i select multiple person from the combobox.

so how can I patch multiple person selected from combox into sharepoint list using patch?

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi

    Try this

    ClearCollect(emailTo, Combobox1.SelectedItems); // Collect current attendees

    ForAll(emailTo,
    Patch( Members, Defaults(Members),
    {
    Group: gourptxt.Text,
    emails: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Department: "", Claims: "i:0#.f|membership|" & ThisItem.Email,
    DisplayName: ThisItem.DisplayName,
    Email: ThisItem.Email, JobTitle: "", Picture: "" } } ) )

    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard