GetUserProfileByName for People Picker User - InfoPath Dev
in

InfoPath Dev

GetUserProfileByName for People Picker User

Last post 10-03-2012 08:13 AM by wilkies0106aw. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-28-2012 07:29 AM

    GetUserProfileByName for People Picker User

    All,

     I can easily get the UserProfileServiceByName to fill out fields for the current used on Form Load. 

    Yet how can I get the information for another person who is selected via a people picker control on the same form.  I've seen where I can use a button to reference the people picker field, yet I'm trying to avoid the button, I'd like it to happen automtically without the user having to press an update button.

    Thanks

  • 10-03-2012 08:13 AM In reply to

    Re: GetUserProfileByName for People Picker User

    Create a second GetUserProfileByName Data Connection - Give a name you'll remember.

    In the Fields>MyFields view add a another field ie. LeaverEmployeeName

    On this field create a new action rule - it has several parts to it.

    Condition: Run when field changes.

    1. Set the field value for the field you just created to the Second GetUserProfile connection as its source, expand the Fields and Highlight the AccountName.  The Value set as the Original People Picker (on your form) Account ID

    2. Query your 2nd GetUserProfile Source

    3. To set other fields i.e. LeaverOffice .It's just like a normal GetUserProfile Connection instead you set the source of the fields as the 2nd GetUserProfile connection, then filter as normal.

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