cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
garnern2
Helper I
Helper I

Record Person in Person Column

I'm attempting to record a Claim in a Person Column on a Sharepoint List based on an Employee ID entered in the app. I have read several tutorials and I've tried what I think is required--the name appears in the PowerApp, but when I submit, the Person Column is blank. Here's what I'm attempting to use as the Default in the Person Column field on the "New" Form. I've got to be missing something.

 

 

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",Claims:"i:0#.f|membership|" & Office365Users.Manager(UserID).Mail,
Department:"",
DisplayName:Office365Users.Manager(UserID).DisplayName,
Email:Office365Users.Manager(UserID).Mail,
JobTitle:"",
Picture:""}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @garnern2,

Have you solved your problem?

Do you want to save the manager display name to a Person column?

Could you please share a bit more about your need?

The Office() formula you used is to determine a manager's display name, you should make sure the user id you refer to surely has a manager. 

Besides, we always recognize an email address an the user id, so please modify your user is as a unique email address.

Or you could check the input name firstly, and then search the manager based on input name mail.

Office365Users.Manager(First(Office365Users.SearchUserV2({searchTerm:"Input_Name"}).value).Mail).Mail
Best Regards,
Qi

View solution in original post

2 REPLIES 2
zmansuri
Super User
Super User

Your code looks ok. For debugging take a label and set it's text property to:

Office365Users.Manager(UserID).Mail

and check the result. It should be plain text email and id nothing else.

v-qiaqi-msft
Community Support
Community Support

Hi @garnern2,

Have you solved your problem?

Do you want to save the manager display name to a Person column?

Could you please share a bit more about your need?

The Office() formula you used is to determine a manager's display name, you should make sure the user id you refer to surely has a manager. 

Besides, we always recognize an email address an the user id, so please modify your user is as a unique email address.

Or you could check the input name firstly, and then search the manager based on input name mail.

Office365Users.Manager(First(Office365Users.SearchUserV2({searchTerm:"Input_Name"}).value).Mail).Mail
Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,724)