Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Infopath 2010 pulling department info from user profile service

Posted on 2010-08-27
4
Medium Priority
?
1,322 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:AshridgeTechServices
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:melli111
ID: 33544475
How are you setting the value?  What is the value & filter you are selecting?
it should be
Value[Name = "Preferred Name"]
0
 
LVL 1

Author Comment

by:AshridgeTechServices
ID: 33564524
Yep that is the way i have done it, and it works for "preferred name" but not "department"


value.jpg
0
 
LVL 15

Accepted Solution

by:
melli111 earned 2000 total points
ID: 33566499
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
 
LVL 1

Author Comment

by:AshridgeTechServices
ID: 33566653
Had thought of that already, and unfortunately it does not help.

Thanks for the suggestion though
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question