GetUserprofilebyName operation of the web service - InfoPath Dev
in

InfoPath Dev

GetUserprofilebyName operation of the web service

Last post 06-27-2009 08:37 AM by warrtalon. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-27-2009 08:11 AM

    GetUserprofilebyName operation of the web service

    Hello friends, I wish to recover through my InfoPath form the name or the account of the user who opened the form in SharePoint. I want to thus use this parameter in order to configure the change of views of the form according to the user who opens this form around a flow of work. I had already to pose this problem and I had like answer to create a connection of data of reception of the Web service in order to choose the GetUserprofilebyName operation. Thing which I had to make successfully.

    Then to test so indeed this connection of data the name of the user recovers, I decided to create a button and a zone of text in my model free form so that by defining a rule on the button “ok” I can recover and post the name or the account of the user who opened the form in SharePoint, in the zone of text
    so i create a ruleon the button to retreive the account name in the textbox. i do this method but on don't have  a satisfy result.please i beg your pardon to help me. thank
    cordially.
    l'assoifé de la connaissance
    Filed under:
  • 06-27-2009 08:37 AM In reply to

    Re: GetUserprofilebyName operation of the web service

    To begin with, you don't need to use that web service to get the username.  You just use the function userName() and use a rule or default value to put it in your text field.  This will return the username of the current user and can surely be used for hiding parts of your form or for switching views.  You can then use that username to get additional profile info about that person or other people if you send that username to the web service as a query parameter.  Refer to my blog entry for assistance: InfoPath – Get user information without writing code (extended).  Also, there are several other threads close to the top that talk about this web service in case you want to peruse.

     

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