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 : 8/MQEwJi3Sqp7Y6oeXr6+v
Power Apps - Building Power Apps
Answered

How do I patch to a people column in SharePoint list

Like (0) ShareShare
ReportReport
Posted on 1 Dec 2023 09:29:08 by 279

I have a gallery that is displaying some data that I want to patch to another SharePoint list. Currently I am trying to do this, but I can't get the people column data part to work.  It is a single people column.

Patch('my list',LookUp('my list',ID=xxx),{txtcol: ThisItem.txtColName, myPeopleCol: ThisItem.galPeopleCol})

How do I grab the people column value that is displayed in the gallery, and patch that to a people column in a SharePoint list?

  • mmbr1606 Profile Picture
    13,290 Super User 2025 Season 2 on 01 Dec 2023 at 09:56:48
    Re: How do I patch to a people column in SharePoint list

    2023-12-01_10h56_41.png

    this is how i patch into People Picker without network issue

  • Verified answer
    cdwhite Profile Picture
    1,067 Most Valuable Professional on 01 Dec 2023 at 09:35:08
    Re: How do I patch to a people column in SharePoint list

    Hi @Spawn10 ,

    You'll likely need something like this:

     

     

    Patch(
     'my list',
     LookUp('my list',ID=xxx),
     {
     txtcol: ThisItem.txtColName, 
     myPeopleCol: 
     {
     DisplayName: "",
     Claims: "user@emailaddress.com",
     Department: "",
     Email: "",
     JobTitle: "",
     Picture: ""
     }
    })

     


    You can hardcode the email address in the Claims part, like above, or reference a relevant gallery field. For example, ThisItem.galPeopleCol.Email, or ThisItem.Email etc.

     

    The method above is the least bloated in terms of code, you don't need any other properties populated in the object. I've tested the above code on my end and works perfectly, and is going to be included in a blog post on the topic that I'm releasing soon 😀
    ------------------------------------------------------------------------------------------------------------------------------
    If I've answered your question, please mark your post as Solved. You can accept more than one post as a solution.

    If my response was a good one, please give it a Thumbs Up!

    Visit my blog: https://platformsofpower.net

  • Verified answer
    Rajkumar_M Profile Picture
    3,716 Super User 2025 Season 2 on 01 Dec 2023 at 09:34:18
    Re: How do I patch to a people column in SharePoint list

    Hi  @Spawn10  

     

    Patch(
    'my list',
    LookUp('my list', ID=xxx),
    {
    txtcol: ThisItem.txtColName,
    myPeopleCol: {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "i:0#.f|membership|xxx.yyy@companyname.com",
    Department: " ",
    DisplayName: " ",
    Email: " ",
    JobTitle: " ",
    Picture: ""
    }
    }
    )

     

    Refer this link : How To Patch A SharePoint Person Column In Power Apps (c-sharpcorner.com)

     

    PATCH A SharePoint Person Column In Power Apps - Matthew Devaney

     

     

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete