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 / Error in person column
Power Apps
Answered

Error in person column

(0) ShareShare
ReportReport
Posted on by

I have a requirement to populate a person column with the manager of the person selected in another person column

 

In the requestor column I have the following properties

Items:

 

 

Choices([@AUGBE_TEST].Requestor)

 

 

DefaultSelectedItems:

 

 

If(
 Form1.Mode = FormMode.New,
 {
 DisplayName: myself.FullName,
 Claims: "i:0#.f|membership|" & myself.Email
 },
 Parent.Default)

 

 

And for the Line Manager field I'm trying to populate

 

Items:

 

 

Choices([@AUGBE_TEST].Line_x0020_Manager)

 

 

DefaultSelectedItems:

 

 

If(DataCardValue12.Value=false, {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(DataCardValue28.Selected.Email).mail,
 Department:"",
 DisplayName:Office365Users.ManagerV2(DataCardValue28.Selected.Email).displayName,
 Email:Office365Users.ManagerV2(DataCardValue28.Selected.Email).mail,
 JobTitle:"",
 Picture:""
 })

 

 

None of the properties' syntax are in error but when I publish the form I get the following error in the form in the person column;

DWTKBrook_0-1678657758450.png

 

I have no idea what's causing this or how to fix it. Has anyone else run into this issue before?

Any ideas on how to fix this?

 

Any help would be greatly appreciated.

DWTKBrook

 

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    on at

    Hi @Anonymous ,

    The parameter required by Office365Users.ManagerV2() is UerID

    vchengfenmsft_0-1678676235285.png

    Please try:

    If(DataCardValue12.Value=false, {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(First(Office365Users.SearchUser({searchTerm:DataCardValue28.Selected.Email,top:1})).Id).mail,
     Department:"",
     DisplayName:Office365Users.ManagerV2(First(Office365Users.SearchUser({searchTerm:DataCardValue28.Selected.Email,top:1})).Id).displayName,
     Email:Office365Users.ManagerV2(First(Office365Users.SearchUser({searchTerm:DataCardValue28.Selected.Email,top:1})).Id).mail,
     JobTitle:"",
     Picture:""
     })

     

     

    Best Regards

    Cheng Feng

     

  • Community Power Platform Member Profile Picture
    on at

    Thank you @v-chengfen-msft , that did the trick. I appreciate your help on this one.

     

    Cheers!

    DWTKBrook

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard