.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

get loggedin User profile data using webservice in infopath

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :SharePoint

Hi All,

my requirement is to get loggedin user data through webservice and displayed in InfoPath form. i have follow the below steps.

 Create the form

  1. Open InfoPath and design a new, blank form
  2. Save the form as UserProfilexsn


View Complete Post

More Related Resource Links

get loggedin User profile data using webservice in infopath


Hi All,

my requirement is to get loggedin user data through webservice and displayed in InfoPath form. i have follow the below steps.

 Create the form

  1. Open InfoPath and design a new, blank form
  2. Save the form as UserProfilexsn


Get user info in infopath using data connection

hi,  i want to use the absence request template form and connect the employee section and manager section to an existing database. what i want to create now in this template is this (i'm going to explain my scenario): - when the user open the infopath absence request form and insert his name, id number etc (employee section), the approver's name and mail addres (manager section) filled automatically. the approver name must be corresponding to the user name. in the existing database there is a table with the approvers name filled for each user, but from there i dont know how to apllicate this table to use for the auto fill. and after the form is ready can i publish it to my wss 3 site collection? is there a tutorial that explain a scenario like this? thnx

How to get Email of Current User Data View Web Part Sharepoint 2010 and pass to WebService data sour

I have to pass in the email address of the current user to a web service data source (run time) of a Data View Web Part.

My Question is:

a) How can I get Email address of current user based  in DVWP.
I know we can get the CurrentUser using the CurrentUserName but how do we get the Email for the Current User.

b) After getting the Email how do we pass to the Web Service.

Infopath connection to User Profile Service


I have been following the examples on how to create a data connection to the MOSS User Profile Service and have run into a snag.  Specifically, I am trying to have the Infopath form pre-populate the name of the user who is currently logged in.The two good references I have found are:






I have tried both methids and run into the same problem. When I preview the form, I get nothing.  I ran a sniffer and here is what I get:


HTTP/1.1 401 Unauthorized..Content-Length: 1656..Content-Type: text/html..Server: Microsoft-IIS/6.0..WWW-Authenticate: Nego

Accessing Active Directory's User Profile Information in InfoPath Form



I want the User Profile information in InfoPath Form from active directory and I want complete information of currently logged in user which include:

User Name, First Name, Last Name, Email Address, Designation, Company, Manager Name and everything which is in the profile of user in Active Directory. Please help me in getting this.


M Kamran Rafi

InfoPath Forms Services has detected a mismatch between the user's data in the browser and on the s


Hi All,

I am getting following error message in my SharePoint Logs,

InfoPath Forms Services has detected a mismatch between the user's data in the browser and on the server. This may indicate the SESSION_STATE_PASCAL_CASED is not configured properly on a multiple front end farm or that a malicious user is trying to tamper with client data.

Any idea how to solve this issue ?


Muhammad Tariq khan

Supplement User Profile with Data from LDAP


Our User Profile Service is importing the data from AD. But there are additional data which is coming from different system (LDAP). We are supplementing additional fields in this way

-> Download from LDAP to SQL. From SQL update User Profile (which i am considering to use BCS now).

Here is my question, is there anyway to update the user profile with the data from LDAP directly instead of the above two step process. (Like customizing BCS through VS 2010, or if this is available out of the BOX)


InfoPath form using SQL webservice is not showing data



I've developed an InfoPath form using SQL webserivce which contain drop downs. In SharePoint, I created a Data Connection Library and Forms Library. In InfoPath forms, I'm using ucdx file which i placed in my Data Connection Library. I'm also using Full Trust and created new certificate. I published it using 'Enable this form to be filled out using a browser' option and 'Administrator-Approved form template'.

Using Central Admin, Manage Form Templates > Upload Form Templates. I uploaded InfoPath xsn file and activate it in the Site Collection. Now, I can see my form in the Form Templates library. I opened the form using 'Open in the client application', it asked for the username/password and opened the form in the InfoPath forms. It works absolutely fine. But, when i try to open the form using 'Display as a Web page', is doesn't show the values in the drop down which is coming through webservice. No error as well.

Any idea folks ?

Sohaib Khan | http://muhskhac.spaces.live.com

User Not Found: Could not load profile data from the database



       i am trying to get the Department of a user , using the following code 

                objWeb = SPContext.Current.Web;

                strCurrentUser = objWeb.CurrentUser.Name;

                objList = objWeb.Lists["MyList"];

                SPSite _site = SPContext.Current.Site;


User not found. Could not load profile data from the database



We have our intranet on MOSS 2007. Some of the users (particularly those who have edited their account names in AD) are getting the above error when they try to 'Edit Details' from 'My Profile' in 'My Site'.

I am not sure how to resolve this issue. Can someone kindly help me please?



how to enable filtering on user setting stored in profile as binary data in a gridview?



I have a Profile with a Property like this:


    <add name="UserDetails" type="oUserDetails" serializeAs="Binary"/>


How can I show all Users with their Details in a GridWiew and how to enable filtering for values located in the UserDetails class. For example UserDetails.FavouriteColor which is a string.



Linq - add data to database then email user the details


Hi all

I'm not sure how to structure the code for this but what I want to do is be able to add data to a database, and once this has completed successfully, then email the user to say the details have been added successfully to the database.

I need to:

1. Check that the relevant data has been added into the database then

2. Email the details of the relevant data when completed. 


Thanks in advance for your help,




logged in user data


I'm using the defualt membership provider, i created a table and used the gridview on the logged in user page to show his information such as address e-mail phone zip code etc,, how can i do this without writing a code?

I am new to asp.net  i need simple help please?

Storing User Data



I'm trying to get the current logged in UserId Value, using this code

Protected Sub UserProfileDataSource_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles UserProfileDataSource.Selecting      ' Get a reference to the currently logged on user      Dim currentUser As MembershipUser = Membership.GetUser()      ' Determine the currently logged on user's UserId value      Dim currentUserId As Guid = CType(currentUser.ProviderUserKey, Guid)      ' Assign the currently logged on user's UserId to the @UserId parameter      e.Command.Parameters("@UserId").Value = currentUserId End Sub

But, I getting an error (NullReferenceException), I did set a url authorization on the page that i try to get the logged in user information, witch is info.aspx, and I made the login.aspx control to be redirected to the info.aspx after the login process, But the info.aspx  only shows me (access in denied), how can i make this page knows that i am already logged in?

Persist data in a dynamically populated ListBox in a user control


Hi All,

I am trying to persist data in a dynamically populated ListBox in a user control. Here are the details

I have a user control which contains a a listBox and button. On Page_Load of user control I am populating the ListBox control with some values. On Click of button, I am trying to fetch the values which I have selected in ListBox. Though this seems very simple and straight forward I am unable to fetch values.

My Page_Load Function

void Page_Load(object sender, EventArgs e)










My Click Function

Protected Void Button1_Click(object sender, EventArgs e)


       string strValue = listBox.SelectedValue



I have placed brake point at Page_Load and on click function, I am seeing that the moment the breakpoin

Toolbox: User-Friendly UIs, Online Data Entry Controls, and More


Microsoft® Office is one of the most well-known and most-used consumer products. For many people, their only experience with a computer is when using Office, be it checking e-mail, creating presentations, or writing a document.

Scott Mitchell

MSDN Magazine February 2006

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend