Infopath 2010 pulling department info from user profile service

Hi Guys

I have been playing with infopath to make a new starters form for my company, which will be published via sharepoint 2010.

Most of it has been very easy and straight forward. but im having trouble retrieving the department info for the user.

The image i have attached shows an extract from the test form, the two highlighted boxes are both supposed to be returning data, the top box is pulling "PreferredName" and the 2nd should be getting "department" but it fails to work, despite the fact that the value is set in active directory and on the users SP profile.

Any ideas what im doing wrong?

Cheers test for screenshoot
LVL 1
AshridgeTechServicesAsked:
Who is Participating?
 
melli111Connect With a Mentor SharePoint Administrator / DeveloperCommented:
Is "department" in your user properties lower-case?  Sometimes these things can be case-sensitive - I'm not too sure if it is with the user profile filter values or not, but you may need to set it as "Department"
0
 
melli111SharePoint Administrator / DeveloperCommented:
How are you setting the value?  What is the value & filter you are selecting?
it should be
Value[Name = "Preferred Name"]
0
 
AshridgeTechServicesAuthor Commented:
Yep that is the way i have done it, and it works for "preferred name" but not "department"


value.jpg
0
 
AshridgeTechServicesAuthor Commented:
Had thought of that already, and unfortunately it does not help.

Thanks for the suggestion though
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.