Skip to main content
Nintex Community Menu Bar
Solved

UserProfileLookup my email

  • August 17, 2022
  • 4 replies
  • 460 views

kgiles
Forum|alt.badge.img+4

I know my email should pop because I can recall it in InfoPath 2013. 

When I attempt either of these formulas, I'm returning blank:
userProfileLookup(Current User,"EMail")
userProfileLookup(Current User,"WorkEmail")
I've tried several other variations but my email is not returning. I have not problem returning PreferredName... Please and thank you!

Best answer by Garrett

Hi @kgiles  

 

I place the formula in a Calculated Field. All are working

userProfileLookup(Current User (Email), "WorkEmail") - Working

userProfileLookup(Current User (Email), "UserName") - Working

userProfileLookup(Current User (Email), "PreferredName") - Working

userProfileLookup(Current User (Email), "WorkPhone") - Working

 

Perhaps you should try to hardcode the "current user" instead of using a variable.

 

You can get the list of Profile Property from Microsoft - https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/hh147513(v=office.14)

4 replies

Garrett
Forum|alt.badge.img+16
  • Scout
  • August 17, 2022

Hi @kgiles 

 

Try putting quotes

userProfileLookup("Current User (Email)", "WorkEmail")


kgiles
Forum|alt.badge.img+4
  • Author
  • Rookie
  • August 17, 2022

No luck 😞 I tried flipping workemail and email as well. 


Garrett
Forum|alt.badge.img+16
  • Scout
  • Answer
  • August 17, 2022

Hi @kgiles  

 

I place the formula in a Calculated Field. All are working

userProfileLookup(Current User (Email), "WorkEmail") - Working

userProfileLookup(Current User (Email), "UserName") - Working

userProfileLookup(Current User (Email), "PreferredName") - Working

userProfileLookup(Current User (Email), "WorkPhone") - Working

 

Perhaps you should try to hardcode the "current user" instead of using a variable.

 

You can get the list of Profile Property from Microsoft - https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/hh147513(v=office.14)


kgiles
Forum|alt.badge.img+4
  • Author
  • Rookie
  • August 17, 2022

Thank you!