Hi
I've added code in the loading event to read in the input parameters to get the XmlLocation value. With this code added, any calls to the GetUserProfileByName returns the system account (it returns the user account if the code is removed).
The intent is to get the location of the Infopath form within SharePoint and then pass that to our own custom web service when the form is submitted. One workaround was to use the builtin userName() as the parameter to GetUserProfleByName. That works fine, but our web service relies on ASP.NET impersonation, so our web service is called as the system account.
Is there anyway to get the XmlLocation without writing any code? Or is there some way of having the form still run as the normal user instead of the system account?
Thanks