Scenario:
You want to get the user email or other profile related details from sharepoint in infopath or your code.
Solution:
You can use GetUserProfileByName web-method from UserGroup.asmx web-service. This will return you Key Value pair. Using DOM you can specify what fields you want information about.
Code:
http://localhost/_vti_bin/UserGroup.asmx?WSDLSelect GetUserProfileByName
Article:
http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx
0 comments:
Post a Comment