<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Userprofileservice.asmx With .UDCX File Gives SharePoint Admin Username Instead of First name, Last Name and suchlike</title><link>https://www.infopathdev.com:443/forums/thread/116489.aspx</link><pubDate>Wed, 14 Jun 2017 10:27:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116489</guid><dc:creator>chiransj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116489.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=116489</wfw:commentRss><description>Yep. I am populating a field labeled like User with a default value of UserName(). Also I am the Site Collection Administrator. But I cannot access the &amp;#39;Central Administration&amp;#39; section of the SharePoint Site. I don&amp;#39;t have permission to access it.</description></item><item><title>Re: Userprofileservice.asmx With .UDCX File Gives SharePoint Admin Username Instead of First name, Last Name and suchlike</title><link>https://www.infopathdev.com:443/forums/thread/115644.aspx</link><pubDate>Fri, 17 Feb 2017 16:57:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115644</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=115644</wfw:commentRss><description>Are you populating a username first via a field labeled something like User with a default value of userName()?</description></item><item><title>Userprofileservice.asmx With .UDCX File Gives SharePoint Admin Username Instead of First name, Last Name and suchlike</title><link>https://www.infopathdev.com:443/forums/thread/108813.aspx</link><pubDate>Wed, 07 Dec 2016 11:18:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108813</guid><dc:creator>chiransj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=108813</wfw:commentRss><description>I have create an InfoPath form that uses the Userprofileservice.asmx web service to retrieve the information form the AD. I have used a .UDCX file store the data connection. My environment is SharePoint 2013 with InfoPath 2013.

I wanted to view the First Name, Last Name and Preferred Name on in some text boxes. So I have used the below filters&lt;br /&gt;&lt;br /&gt;

First Name - Value[Name = &amp;quot;FirstName&amp;quot;]&lt;br /&gt;
Last Name - Value[Name = &amp;quot;LastName&amp;quot;]&lt;br /&gt;
Preferred Name - Value[Name = &amp;quot;PreferredName&amp;quot;]&lt;br /&gt;&lt;br /&gt;

The XPaths are as below.&lt;br /&gt;&lt;br /&gt;

First Name - xdXDocument:GetDOM(&amp;quot;GetUserProfileByName 2&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = &amp;quot;FirstName&amp;quot;]&lt;br /&gt;&lt;br /&gt;

Last Name - xdXDocument:GetDOM(&amp;quot;GetUserProfileByName 2&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = &amp;quot;LastName&amp;quot;]&lt;br /&gt;&lt;br /&gt;

Preferred Name - xdXDocument:GetDOM(&amp;quot;GetUserProfileByName 2&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = &amp;quot;PreferredName&amp;quot;]&lt;br /&gt;&lt;br /&gt;

This SharePoint site uses Claims based authentication.&lt;br /&gt;&lt;br /&gt;

But when I published the form to SharePoint I get&lt;br /&gt;&lt;br /&gt;
First Name - SPPrdAdmin&lt;br /&gt;
Last name - EMPTY&lt;br /&gt;
Preferred Name - SPPrdAdmin&lt;br /&gt;&lt;br /&gt;

I cannot understand what I have done wrong.&lt;br /&gt;

Please could someone help on this?

Thanks and regards,
Chiranthaka</description></item></channel></rss>