Accessing SharePoint User Profile Service fields within InfoPath Accessing SharePoint User Profile Service fields within InfoPath
Jaydeep Patel

Jaydeep Patel

April 07, 2013

All Post
Accessing-SharePoint
Share:

Accessing the SharePoint User Profile Service within InfoPath

Accessing User Profile information is quite useful from within InfoPath.  This is great for acquiring user fields such as title, phone number or any custom field created within the UPS (User Profile Service).

Within InfoPath, first, define the data connection to the UPS:

img

Then select the appropriate method.  User Profile Service is quite a rich web service with a lot of methods:

img

Here’s what the user() value check looks like, on Form Load, that then is used to decide whether to change Views:

img

Here’s how to get the property of a user.  Decide the property to get:

img

Decide the account for which to get the property:

img

Trigger the method:

img

Then extract the result set!

img

Very useful. It works like a charm.

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.