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 / Auto populate Person C...
Power Apps
Answered

Auto populate Person Column(based on user login) in canvas app record error

(0) ShareShare
ReportReport
Posted on by 819 Super User 2025 Season 2

Good morning!

I built canvas app with SharePoint List and added a code to auto populate a person field/column. It is being updating data for my Power app record added however it is adding something like - i:0#.f|membership|abc@xyz.com  (adding this with the record added during testing of the app). 

 

Can anyone help to solve it.

 

mtsts_2-1717504698726.png

 

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,715 Super User 2025 Season 2 on at

    Hi @mtsts 

     

    You looking for somehting like this: 

     

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

     

    Please also check this topic: https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-user-list-when-other-field-is-populated/m-p/2363770

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • MTNK Profile Picture
    819 Super User 2025 Season 2 on at

    @SpongYe Thanks much for helping.

     

    Can you please check my formulas here.

    I am using Office365Users and my formulas are - 

    Update Property 

     

    DataCardValue2.Selected
     
    DisplayMode
     
    Parent.DisplayMode
     
    DefaultSelectedItems
     
    Coalesce(
        Parent.Default,
        {
            Claims: "i:0#.f|membership|" & User().Email,
            Department: "",
            DisplayName: User().FullName,
            Email: User().Email,
            JobTitle: "",
            Picture: ""
        }
    )
     
     
    DisplayFields
     
    ["DisplayName"]
     
    SearchFields
     
    ["DisplayName","Email","Picture"]
     
    Items 
     
    Choices([@'Walk Through Inspection Checklist 2024'].Inspector)

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @mtsts - do not raise duplicate posts.

     

    I have wasted time answering your question not knowing someone else is already helping you with the same question on three different threads.

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-Person-Column-based-on-user-login-in-canvas-app/m-p/2788089#M682327 

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-Person-Column-based-on-user-login-in-canvas-app/td-p/2780303 

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-person-name-column-error-while-testing-app/m-p/2788355 

     

     

    That time I have just wasted could have been spent on helping someone else.

     

    Please be mindful that community users are also people, who operate under different time zones and are taking their own personal time to help others for free.

  • Verified answer
    MTNK Profile Picture
    819 Super User 2025 Season 2 on at

    @SpongYe  Thanks much for helping. Appreciated.

     

    (The only issue/error was - my record during testing the app was adding i:0#.f|membership|abc@xyz.com)

     

    I deleted subtitle from gallery. It solved my issue. Rest all working good. 

     

     

    --------------------------------------------------------------------

     

    Here is the link with the whole solution for the topic - 

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-Person-Column-based-on-user-login-in-canvas-app/m-p/2780512#M680682

     

     

    Screenshot 2024-06-05 at 10.27.04 AM.png

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

#2
Kalathiya Profile Picture

Kalathiya 340

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard