Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 272

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.)

 

  • FnuMeenu Profile Picture
    FnuMeenu 272 on at
    Re: can user name in canvas app be auto populated for person column field

    @anandm08  It is working.

     

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

    mtsts_0-1717007382739.png

     

  • anandm08 Profile Picture
    anandm08 1,936 on at
    Re: can user name in canvas app be auto populated for person column field
    {
     '@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.

  • FnuMeenu Profile Picture
    FnuMeenu 272 on at
    Re: can user name in canvas app be auto populated for person column field

    @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
    anandm08 1,936 on at
    Re: can user name in canvas app be auto populated for person column field

    Screenshot_20240521_183406.png

    try this and let me know if you face any issue

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard