Retrieve User Office or Location Using Name/pc:Person - InfoPath Dev
in

InfoPath Dev

Retrieve User Office or Location Using Name/pc:Person

Last post 03-30-2016 07:42 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-24-2016 04:43 PM

    Retrieve User Office or Location Using Name/pc:Person

    Am using SharePoint 2013 with InfoPath form. I would like to use Name/pc:Person field/control to retrieve the form user's office or location. I am already use that field/control for user to enter their NT logon and retrieve name via Active Directory. So far cannot find a good explanation/instructions to realize the user's office or location. Would appreciate your help--thanks.

  • 03-30-2016 07:42 AM In reply to

    Re: Retrieve User Office or Location Using Name/pc:Person

     Add a data connection to the User Profile web service. Set the query field to the account ID in your people picker. Run the query. Find the office / location field in the returned data (this will vary according to your user profile info) and set the location field to that. Here is a good tutorial on getting user profile info.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.