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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I patch to a pe...
Power Apps
Answered

How do I patch to a people column in SharePoint list

(0) ShareShare
ReportReport
Posted on by 301

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?

Categories:
I have the same question (0)
  • Verified answer
    Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    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.

     

     

  • Verified answer
    cdwhite Profile Picture
    1,067 Most Valuable Professional on at

    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

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    2023-12-01_10h56_41.png

    this is how i patch into People Picker without network issue

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard