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 / Patch Collection of Em...
Power Apps
Unanswered

Patch Collection of Emails to SharePoint list multiple person or group field

(0) ShareShare
ReportReport
Posted on by 39

I have a button in which OnSelect builds a collection and then patches a bunch of information to a SharePoint list.

 

I'm using clear collect to build the collection of distinct emails called CurrentEmails

 

ClearCollect(

Emails,

.....);

 

ClearCollect(CurrentEmails,Distinct(Filter(Emails,Not(IsBlank(Email))),Email));

 

The column field is called Value

 

I'm trying to figure out how to patch all the emails in the collection to a SharePoint list multiple person field along with some individual other fields. 

 

My patch formula is as follows:

Patch('SharePointList',
Defaults('SharePointList'),
  {Status:{Value:"Submitted"},
  'Requested Date':RequestedDate.SelectedDate,
  Customer:CustomerSearch.Selected.Customer,
  'Customer Address':CustomerSearch.Selected.FullAddress,
  'Current Assignments': .......,

'Updated Assignments':........,
Emails:

ForAll(CurrentEmails,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & Lower(ThisRecord.Value),
DisplayName: Office365Users.UserProfileV2(ThisRecord.Value).displayName,
Email: ThisRecord.Value,
JobTitle: "",
Picture: ""
})
}
)
);

 

I keep getting a Network error when using Patch function. The requested operation is invalid. 

 

Any help would be much appreciated. 

 

 

 

 

Categories:
I have the same question (0)
  • mattyhuff Profile Picture
    39 on at

    I figured it out. 

     

    This code throws an error if any of the emails are inactive in the organization. 

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

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard