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

Error in person column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard