Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Infopath 2010 pulling department info from user profile service

Posted on 2010-08-27
4
Medium Priority
?
1,317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

670 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