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 Email into peopl...
Power Apps
Answered

Patch Email into people column in sharepoint

(0) ShareShare
ReportReport
Posted on by 133

Hi, I am trying to patch user().email into people column in sharepoint as follows

 

Column in Sharepoint

Appleonwindows_0-1692855829455.png

Patch(
 'Table1',
 {ID: Self.LastSubmit.ID},
 {PersonWhoSubmit:User().Email}
)

 However, the following error occurs 

 

The type of this argument 'PersonWhoSubmit' does not match the expected type 'Record'. 
Found type •Error'. 

 May I know how should I amend my formula above? I tried Text and value but it doesnt work

Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @Appleonwindows,

    The person type column expects a record like following expression.

    Patch(
     'Project Tasks',
     LookUp('Project Tasks', ID=1),
     {
     EmployeePerson: {
     Claims: "i:0#.f|membership|mdevaney@companyname.com",
     Department: "",
     DisplayName: "Matthew Devaney",
     Email: "mdevaney@companyname.com",
     JobTitle: "",
     Picture: ""
     }
     }
    )

     

    Best Regards,

    Kyrie

     

  • Appleonwindows Profile Picture
    133 on at

    Hi, thanks for the prompt reply.

     

    May I know how do i obtain the claims from user()? As i need all of the item to be formularize (dynamic approach)

     

    When I got to User(), it only prompt me Email, FullName, and Image

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @Appleonwindows 

    Claims: "i:0#.f|membership|" & User().Email,

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard