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:
Then select the appropriate method. User Profile Service is quite a rich web service with a lot of methods:
Here’s what the user() value check looks like, on Form Load, that then is used to decide whether to change Views:
Here’s how to get the property of a user. Decide the property to get:
Decide the account for which to get the property:
Trigger the method:
Then extract the result set!
Very useful. It works like a charm.
Want to talk?
Drop us a line. We are here to answer your questions 24*7.