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 / Network Patch error wh...
Power Apps
Answered

Network Patch error when submitting Person field to Sharepoint List

(0) ShareShare
ReportReport
Posted on by 427

Hello, 

I need help with the following: My Power App is connected to a Sharepoint List. When I click on a button it should submit the field values into this list. I think I found the reason why it broke previously:

DJanssen_0-1705565047643.png

I have an Initiator Power App field connected to the Sharepoint List Person type column. This is set to the current user's details so the code I use for the DefaultSelectedItems property is: 

 

{
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: User().FullName,
 DisplayName: User().FullName,
 Email: User().Email
}

When I press the submit button I receive the following error:

DJanssen_1-1705565129076.png

I think I need to change my Claims to: Claims: "i:0#.f|membership|" & User().Email, but then I get this look that I don't want: 

DJanssen_2-1705565198894.png

I wish to keep displaying the User().FullName and not the i:0 etc. 

 

Can somebody help me? 


 

Categories:
  • Verified answer
    Cr1t Profile Picture
    555 on at

    Hello @DJanssen

    On DefaultSelecredItems please use

    { 
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", 
    DisplayName:User().FullName, 
    Claims:"i:0#.f|membership|" & Lower(User().Email), 
    Department:"", 
    Email:User().Email, 
    JobTitle:"", 
    Picture:"" 
    }

    And to to display user name on the drop down you can follow these steps.

    Select the Datacard.

    No the right hand side click edit on fields .

    Cr1t_0-1705566428309.png

     

    Please set the primary text and search field to DisplayName.

    Cr1t_1-1705566461500.png


    Save and preview the app. 

    Please let me know if this works for you. 
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @DJanssen 
    Please verify your Code with below Code.

     

    //Correct Working Code.
    /*Patch(SampleList, Defaults(SampleList), {PersonField:{
     Claims: Concatenate(
     "i:0#.f|membership|",
     User().Email // Person email
     ),
     Department: "",
     DisplayName: User().FullName,
     Email: User().Email, // Person email
     JobTitle: "",
     Picture: ""
    }})*/
    
    //Note : if you dont want to set JobTitle,Picture ignor simply.

     

    See the SS for reference.

    VijayTailor_0-1705567506026.png

    Thank,



    👋 If my suggestion worked for you, could you please mark it as answered? It'll not only let others know that there's a solution available but also help streamline the community for everyone. Thanks a bunch! 🌟

  • DJanssen Profile Picture
    427 on at

    @Cr1t Hi your solution looks most suitable but I can't set the primary text and search field:

    DJanssen_0-1705583145406.png

    Edit: My Power App studio refreshed and now the change in the DisplayFields and Searchfields worked. Thanks 🙂

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard