<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to save a current login user Name into sharepoint list on form submiting?</title><link>https://www.infopathdev.com:443/forums/thread/125407.aspx</link><pubDate>Wed, 29 Nov 2023 00:31:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125407</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=125407</wfw:commentRss><description>Are you using SharePoint Online by any chance? If so, you might want to promote the user name to a field and then you could use Power Automate running off the form library to set an additional person field to that claims value. We can&amp;#39;t directly promote to a person or group from InfoPath.</description></item><item><title>How to save a current login user Name into sharepoint list on form submiting?</title><link>https://www.infopathdev.com:443/forums/thread/125406.aspx</link><pubDate>Mon, 27 Nov 2023 14:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125406</guid><dc:creator>Ilovetigray</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=125406</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;i am working on already existing app that&amp;nbsp; is not migrated to power apps.&lt;/p&gt;&lt;p&gt;I have sharepoint lit with&amp;nbsp; preparedby&amp;nbsp; -single line text&amp;nbsp; and approvedby person field column&lt;/p&gt;&lt;p&gt;on form submission I want to save: preparedby&amp;nbsp; and approvedby the name of the current loggedin user. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I tried to use userName() on set fields value, but it always insert&amp;nbsp; in the format of :&amp;nbsp;&lt;b&gt; i:0#.f|membership|myemail@site.com&lt;/b&gt;&lt;/p&gt;&lt;p&gt;How can I format the userName() to give me name of the user.&lt;/p&gt;&lt;p&gt;thanks in advance &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>