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 / can user name in canva...
Power Apps
Answered

can user name in canvas app be auto populated for person column field

(0) ShareShare
ReportReport
Posted on by 819 Moderator

Good Morning!

I need to auto populate Inspector(person column name) field based on User Login on canvas app.

(I made the canvas app with my SharePoint List.)

 

Screenshot 2024-05-21 at 8.48.26 AM.png
Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    Screenshot_20240521_183406.png

    try this and let me know if you face any issue

  • MTNK Profile Picture
    819 Moderator on at

    @anandm08 

     

    I appreciate your kind help.

     

    My connector is Office365Users 

    I tried the code also it did not work.

     

    Can you please review my code -  

     
    Table({Cliams:"i:0#.f|membership|" & User().Email, DisplayName: var_userGivenName, Email:User().Email})
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     DisplayName: User().FullName,
     Claims: "i:0#.f|membership|" & User().Email,
     Email: User().Email
    }

    try this code in the Default property of the dropdown parent control.

  • MTNK Profile Picture
    819 Moderator on at

    @anandm08  It is working.

     

    however in the records for Test Record it is showing something like in image .

    mtsts_0-1717007382739.png

     

    Screenshot 2024-05-28 at 10.59.44 AM.png
  • Verified answer
    MTNK Profile Picture
    819 Moderator on at
    Thanks everyone for helping. 
    It worked for me!
     
    DefaultSelectedItems
     
    Coalesce(
    Parent.Default,{
    Claims:"i:0#.f|membership|" & Lower(User().Email),
    DisplayName:User().FullName
    })
     
    ____________________
    DisplayMode 
     
    DisplayMode.View
     
    ________________
     
    Items Property
     
    Choices([@'SPlist name'].Column Name)
     
    _________________
     
    DisplayFields
     
    ["DisplayName"]
     
    ______________________

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard