Skip Ribbon Commands
Skip to main content
Navigate Up
Give Feedback
Sign In
SharePoint Grind > Posts > Using the Contact Selector in InfoPath to Auto-Populate User Information
 

 Image Viewer

 
February 24
Using the Contact Selector in InfoPath to Auto-Populate User Information

I've been working on developing a pretty hefty form over the past couple weeks and the users want a lot of data pulled in from various data sources. One request they hadwas to be able to use the Contact Selector control to have the same "People Picker" functionality available to them within SharePoint. Well, that's not a problem, but requests didn't stop there. They also wanted to have certain user information fields auto-populate based upon the person they pick in this People Picker. I hadn't implemented this before, but it was fairly easy to find plenty of people who had... Here's a few links that provide instruction there.

 

Now, my form has to pull in quite a bit of demographic data and we're using a connection to the User Profile Service via SharePoint, so in case you're wondering what fields are available to you, here's a list of them. I pulled this information from Ishkay's blog, link provided above. Of course it's only as available as your AD or Profiles in SP make it, so if some of the fields like Birthday pull up blank, check before you blame InfoPath :)

 snapshot.png

Alana Helbig:

 

 

Itay Shakury:

http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx

 

 

 

Itay Shakury's complete list of default profile properties that get returned by the userprofileservice:

 

UserProfile_GUID
AccountName
FirstName
LastName
PreferredName
WorkPhone
Office
Department
Title
Manager
AboutMe
PersonalSpace
PictureURL
UserName
QuickLinks
WebSite
PublicSiteRedirect
SPS-Dotted-line
SPS-Peers
SPS-Responsibility
SPS-Skills
SPS-PastProjects
SPS-Interests
SPS-School
SPS-SipAddress
SPS-Birthday
SPS-MySiteUpgrade
SPS-DontSuggestList
SPS-ProxyAddresses
SPS-HireDate
SPS-LastColleagueAdded
SPS-OWAUrl
SPS-ResourceAccountName
SPS-MasterAccountName
Assistant
WorkEmail
CellPhone
Fax
HomePhone



Comments

There are no comments for this post.
 

 ‭(Hidden)‬ Blog Tools