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 / Auto Populate Employee...
Power Apps
Answered

Auto Populate Employee's Manager name

(0) ShareShare
ReportReport
Posted on by 669

Hi,

I've using below logic to auto populate employee's manager name, but this does not seems to be working:

Office365Users.Manager(DataCardValue2.Selected.Email).DisplayName

Getting error at .DisplayName

SharePoint list is connected to the PowerApp. Where Employee 1 and Employee 2 are Person or Group fields

Prem4253_0-1715932166674.png

Once Employee name is added, automatically populate Employee Manager name

See below error:

Prem4253_1-1715932225960.png

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Prem4253 ,

     

    Please use DefaultSelectedItems property instead of using Default property of combo box control.

    {Claims:"i:0#.f|membership|"&Office365Users.Manager(DataCardValue2.Selected.Email).Mail,Email:Office365Users.Manager(DataCardValue2.Selected.Email).Mail,Department:"",DisplayName:"",JobTitle:"",Picture:""}

     

    Best Regards,

    Wearsky

  • Prem4253 Profile Picture
    669 on at

    @v-xiaochen-msft 

     

    This does not seems to be working, after adding the code provided by you.

    Prem4253_0-1715934973268.png

     

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Prem4253 ,

     

    I made a sample.

    vxiaochenmsft_0-1715935984628.png

    vxiaochenmsft_1-1715935994631.png

    vxiaochenmsft_2-1715936006622.png

    {Claims:"i:0#.f|membership|"&Office365Users.Manager(ComboBox2.Selected.Email).Mail,Email:Office365Users.Manager(ComboBox2.Selected.Email).Mail,Department:"",DisplayName:Office365Users.Manager(ComboBox2.Selected.Email).DisplayName,JobTitle:"",Picture:""}

     

    Best Regards,

    Wearsky

  • Prem4253 Profile Picture
    669 on at

    @v-xiaochen-msft 

    Thanks - this is working into Small Environment but not in Production

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard