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 a Person to sing...
Power Apps
Answered

Patch a Person to single Sharepoint row

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everbody,

 

today I have a question for you regarding the Patch-function. I want to add a person (Office365 Account) to an single row.

The table contains an ID and the person.

Patch(SeatPlanReservation; First(Filter(ReservationPlan;Titel="0101")); { Reservation: Office365-User.MyProfile() })

But the last entry wont work. (Office365-User.MyProfile()) I allready tried to get my User (Person) with .UserProfile(User().Email)!

The error message said, that the record wouldn't work, because PowerApps or the Sharepoint List is using an other value.

 

I never worked with records, any ideas? I just want to put the Office365-Account to the list. The user will always be the logged user of the using powerapp.

 

Best regards and thank you

 

DA4

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,651 Most Valuable Professional on at

    Take a look at the solution in the following thread:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Saving-data-from-powerapps-to-SP-lists-person-Group-column/td-p/77329

    To patch a person object to SharePoint you have to supply the values in a particular format.  You can get the values you need from the profile object, but you can't save it directly.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    It's not supported to use "Office365-User.MyProfile()" directly to update person field.

    Here are two ways to update person field:

    1)use combo box

    set the combo box's Items:

    Choices(SeatPlanReservation.Reservation)

    choose your account in the combo box.

    Then try this fomula:

     

    Patch(SeatPlanReservation; First(Filter(ReservationPlan;Titel="0101")); { Reservation: combo box1.Selected })

     

    2)use formula to update

    Try this:

    Patch(SeatPlanReservation; 
     First(Filter(ReservationPlan;Titel="0101")); 
     { Reservation: 
     {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|"& User().Email,
     Department:"",
     DisplayName:User().FullName,
     Email:User().Email,
     JobTitle:"",
     Picture:""
     }
     }
     )

     

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help! Works excellent!  👍

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

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard