Posts

Showing posts from December, 2018

How to set current user details in an InfoPath form

Image
2 userName() method of Info Path form returns the user id/ account id. To get other details such as display name, email id, manager, phone number, etc., we can use the web service “UserProfileService.asmx” Lets say we want to get the display name, email and accound id for the currently logged in user. Below steps are used to configure the User Profile Service and get details out of it. Step 1 –  Add a data connection, select  Receive Data  and  Soap Web Service  Option and enter the url for web service in this format “ http://sever/sites/site/_vti_bin/UserProfileService.asmx&#8221 ; Step 2 –  Select the method  GetUserProfileByName . Click next next and finish the wizard with the checkbox for “Automatically retrieve data when form is opened” checked. Step 3 –  In your form, goto the properties of your name textbox. In the ‘Default Value’ part, click the ‘ fx ‘ button next to the ‘Value’ field. Step 4 –  Click  Insert Field or Group Step 5 –  I