Open your InfoPath form
Tools menu -> Data connection > Click on Add button
Add new data connection
Select Web Service
Enter web service URL http://site/_vti_bin/userprofileservice.asmx Click Next.
Select GetUserProfileByName method and select the Property for ex: WorkEmail and save and close
Select field(WorkEmail) where you want to populate the data. Go to properties
Click on Fx button. Select a field or group button. Select the created datasource and click on value field and then click on filter data button.
Filter condition is : Name is equal to WorkEmail. Close all the windows.
Preview InfoPath and see the result.
No comments:
Post a Comment