On a form, I'm trying to display a user's "PreferredName" and "WorkEmail" using the userProfileLookup() function, and for some users it returns nothing (blank) but for others it works.
If I create a custom list with a Person column that is set to display the name or work email, these properties are shown correctly for those users that result in a blank via the userProfileLookup() on the form. This suggests to me that the AD information is correct, so can anyone suggest why the function might only work for some users and not others?
Solved! Go to Solution.
It was due the user profile synchronizations not occuring on the dev server on which I was developing. After fixing that and starting an incremental crawl, the "missing" users eventually start to work as expected via the userProfileLookup() function.