Skip to main content
Nintex Community Menu Bar

Set Manager People Picker from another People Picker

  • March 2, 2017
  • 3 replies
  • 15 views

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • March 2, 2017

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


Forum|alt.badge.img+7
  • Nintex Partner
  • March 2, 2017

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")

 


Forum|alt.badge.img+3
  • Author
  • March 2, 2017

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