web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching multiple peop...
Power Apps
Unanswered

Patching multiple people picker from one list to another another list in SharePoint

(0) ShareShare
ReportReport
Posted on by 29

I'm patching records from a gallery(TempFacilitiesCol) to a list in SharePoint, but I need to populate a multiple people field (SupportTeams) where the values are in another table (UserGroups).

This table has a Title field and a multi people field (UserList). I need to find the record in the title field that matches my field in the gallery (lblSupportTeamGroup.text) get the users from the UserList and populate the same users in my patch list (NewHire Requests) in the SupportTeams field. See attached the NewHire Requests, I manually populated the SupportTeam but need to automate it with the patch function at the same time I'm creating the record.

I think I need to do another forall statement to get the users but then do I need a Lookup to find the group users, or a filter?

Thanks

 

Here is my patch

 

ForAll(TempFacilitiesCol,
Patch('NewHire Requests',Defaults('NewHire Requests'),
{
Title:ThisRecord.Title,
NewHireID:VarNewHireSandboxID,
RequestStatus:{Value:"Pending"},
SupportTeamsGroup:lblSupportTeamGroup.Text,
SupportTeams: ?????????????

}
))

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at
    Re: Patching multiple people picker from one list to another another list in SharePoint

    @isantos 

    To start, your formula has the ForAll backward. You are trying to use it like a ForLoop in some development language - which PowerApps is not.  It is a function that returns a table of records based on your iteration table and record schema.

    It is more efficient to use the function as intended and will provide better performance.

     

    Based on what you have said about your other list, then your formula should be the following:

    Patch('NewHire Requests'
     ForAll(TempFacilitiesCol,
     {
     Title: Title,
     NewHireID: VarNewHireSandboxID,
     RequestStatus: {Value:"Pending"},
     SupportTeamsGroup:lblSupportTeamGroup.Text,
     SupportTeams: LookUp(UserGroups, Title=lblSupprtTeamGroup.Text, SupportTeams)
     }
     )
    )

     

    I hope this is helpful for you.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard