2

I am using InfoPath 2013 to create a form for SharePoint online.

I want to use the 'Person/Group Picker' to select an employee and have InfoPath display various specific details about that person (which it pulls from active directory). Things like Location, phone number, etc.

This info could either be all in one field or separated out into separate fields (one field for location, one for the phone number, etc).

I don't see any option for it to display anything other than the name. Is there a way to have it display more details?

1

Try to use http://yoursitename/_vti_bin/UserProfileService.asmx to retrieve the related AD information for a specific user based on its AccountName as the following:

  • In Data tab, Create a data connection from Web Service > SOAP Web Service.

enter image description here

  • Select Receive Data > Click Next > Add UserProfileService web service URL via http://yoursitename/_vti_bin/UserProfileService.asmx?WSDl

  • Select Get GetUserProfileByName

enter image description here


[Update]

In Parameter page set the value of the people picker field

enter image description here

Follow the detail steps at GetUserProfileByName at infopath

  • Unless i missed something...This looks like it will only tell the info of the user filling out the form. I am trying to have it display info of the person that is selected in the people picker – Nathan Kidd Jul 16 '17 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.