Solved

Infopath 2010 pulling department info from user profile service

Posted on 2010-08-27
4
1,269 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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
Had thought of that already, and unfortunately it does not help.

Thanks for the suggestion though
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now