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 / Incorrect saving of Pe...
Power Apps
Answered

Incorrect saving of Person's name in the SharePoint list

(0) ShareShare
ReportReport
Posted on by 7

Hello,

 

We have field with people/group options (resricted to look up for people only). When user is filling in the form - he/she sees correct name of person they would like to add to the list, but after saving the form they get theirs name in the list, like during the saving form is picking up the 'Author's' name.

 

Last friday the functions worked fine, as well as we have a few fields which pick up the info from the people\group field, like email and it remains correct.

 

The code in patch we have:

 

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

I wonder what would be the reason? for example, this code getting correct email of the needed user - 

 

ResourceEIDDrop.Selected.Email

And patches it correctly as well - 

'Email': EmailAdd.Text,

Any tips, please? Refresshing and adding the field again - did not help. When we make quick edit on the form, it allows us to change the name of user to correct one.

 

Categories:
  • Verified answer
    Egle_Amidus Profile Picture
    23 on at

    @bubuta wrote:

    Hello,

     

    We have field with people/group options (resricted to look up for people only). When user is filling in the form - he/she sees correct name of person they would like to add to the list, but after saving the form they get theirs name in the list, like during the saving form is picking up the 'Author's' name.

     

    Last friday the functions worked fine, as well as we have a few fields which pick up the info from the people\group field, like email and it remains correct.

     

    The code in patch we have:

     

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

    I wonder what would be the reason? for example, this code getting correct email of the needed user - 

     

    ResourceEIDDrop.Selected.Email

    And patches it correctly as well - 

    'Email': EmailAdd.Text,

    Any tips, please? Refresshing and adding the field again - did not help. When we make quick edit on the form, it allows us to change the name of user to correct one.

     


    Hi, this line in your Patch() statement is not right: Claims: "i:0#.f|membership|" & Lower(User().Email), - you set claims to the current user, i.e. Author. Use Claims: "i:0#.f|membership|" & Lower(ResourceEIDDrop.Selected.Email) instead.

  • bubuta Profile Picture
    7 on at

    Wow, it works now! Thank you a lot, @Egle_Amidus ! 🙂 

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard