Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007 - InfoPath Dev
in

InfoPath Dev

Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007

Last post 07-28-2013 07:42 PM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-18-2013 04:15 AM

    Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007

    Hi,

     I am having a form which needs to retreive workemail of an user. The scenario is like this.

    I have one textbox named as "AccountName" and another textbox as "Email".

    I have one data connection which is calling userprofileservice.asmx(Method Name is : GetUserProfileByName).

    No i want to pass the value that is there in "AccountName" textbox to GetUserProfileByName web service method and get the emai.

    How can i pass the "AccountName" to the data connection without writing any code.

    Please help me if anybody know this. It would be greatful.

  • 07-22-2013 05:29 AM In reply to

    Re: Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007

    This can be done quite easily without code. Just add a rule to copy the value of your AccountName field to the AccountName field in the GetUserProfileByName data connection, and then query the data connection. This could either be a rule on the AccountName field itself, or on a button if that makes more sense in your scenario.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-25-2013 03:34 AM In reply to

    Re: Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007

    Hi Jummy,

     Thanks for your reply. I tried the same in my form.

    1. Assigned the control value to AccountName filed in the getuserbyname method.

    2. Used the query using dataconnection.

    But it didn't work. It seems that i am doing some mistake in my implementation.

    Is it possible for you to post a step throgh here. It will be helpful so much to me as i didn't find any post on the interenet.

    It could be helpful to others also.

    Regards,

    Venu

    Filed under:
  • 07-28-2013 07:42 PM In reply to

    Re: Unable to pass parameter to getuserprofilebyname webservice in Infopath 2007

     Hello vkkts,

        Could you explain what you mean when you say "it didn't work"? Did you get an error? Did the web service return no results?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.