Set Manager People Picker from another People Picker


Badge +3

Hi everyone,

I have a People Picker field named BusinessCardHolder and this is set to be the current user or the current user can change it to a different name. I need to get the manager of the the BusinessCardHolder field. I have named this field to be BusinessCardHolderManager.

Is there a way to have this automated on the Nintex Form without having the team member select their manager?

If so, does it have to be created via Javascript or is there a way to do it without Javascript?

Thanks for the help!


3 replies

Userlevel 5
Badge +14

if you are at least on SP Standard you can use userProfileLookup() function

Badge +7

Dear, 

Add a calculated value control with the formula : 

userProfileLookup(BusinessCardHolder,"Manager")

This will retrieve the BusinessCardHolderManager.

If you want the name of the manager, use the below:

userProfileLookup(userProfileLookup(BusinessCardHolder,"Manager"),"PreferredName")

 

Badge +3

That is what I needed. I used the PreferredName one. This should help me use this field in emails as well. Thank you!

Reply