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 SP List with Gal...
Power Apps
Answered

Patch SP List with Gallery Users

(0) ShareShare
ReportReport
Posted on by 77

Hi dear people!

Hoping to get some help 🙂

I have a gallery that is being populated with users from a combobox.

I've set the OnChange of the combobox to add users to a collection:

Collect(collectUsers, {Email:ppCombo.Selected.Mail})

 

My Gall is connected to the Collection: (Items=collectUsers).

I would like to patch the collection of users to a Person column in SP (column is called Member).

For example, I'm using ForAll:

ForAll(collectUsers, Patch('WalkTheWorld Team Members', Defaults('WalkTheWorld Team Members'), {Title:wtwform_1.LastSubmit.Title, MID:wtwform_1.LastSubmit.ID,

Member:....

(Ignore the wtwform bit above).

Its that last bit I need help with please....what do I need to enter after "Member" so that all the users in the collection are patched back to the SP List (separate line items).

 

Thank you in advance 🙂

Categories:
I have the same question (0)
  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @marney 

    You are doing good so far. you just need to patch your Person type column named Member. The code to patch a person column can be quite long.
    Try this:

    ForAll(collectUsers, Patch('WalkTheWorld Team Members', Defaults('WalkTheWorld Team Members'), {
    
    Title:wtwform_1.LastSubmit.Title, 
    MID:wtwform_1.LastSubmit.ID,
    Member:{ 
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", 
     Claims: "i:0#.f|membership|" & Email, 
     Email: Email,
     Picture: "", 
     JobTitle: "", 
     Department: "", 
     DisplayName: ""
     }
    }
    ));

     

  • marney Profile Picture
    77 on at

    Ah Adrian...a thousand blessings to you! Thank you very much indeed, works perfectly 🙂

    Thanks again mate,

    Marney

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard