GetUserProfileByName returns system account (with loading event code added) - InfoPath Dev
in

InfoPath Dev

GetUserProfileByName returns system account (with loading event code added)

Last post 01-15-2012 11:23 AM by spidermonkey. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-15-2012 11:23 AM

    GetUserProfileByName returns system account (with loading event code added)

    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

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