<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>How to get username from a custom field.</title><link>https://community.appian.com/discussions/f/general/12098/how-to-get-username-from-a-custom-field</link><description>I would like to fetch username from custom field 1, is it possible or is there any function to achieve this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get username from a custom field.</title><link>https://community.appian.com/thread/53598?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 18:34:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d5e50cd-1109-4847-8a82-0420c61a7e30</guid><dc:creator>moushreep</dc:creator><description>Answer from an old post by Brad.&lt;br /&gt;
&lt;br /&gt;
take customField1 as rule input text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with(&lt;br /&gt;
 local!userDictionary: a!forEach(&lt;br /&gt;
 items: getdistinctusers(&lt;br /&gt;
 cons!AllUsers&lt;br /&gt;
 ),&lt;br /&gt;
 expression: {&lt;br /&gt;
 user: fv!item,&lt;br /&gt;
 customField1: user(&lt;br /&gt;
 fv!item,&lt;br /&gt;
 &amp;quot;customField1&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
 }&lt;br /&gt;
 ),&lt;br /&gt;
 index(&lt;br /&gt;
 local!userDictionary,&lt;br /&gt;
 &amp;quot;user&amp;quot;,&lt;br /&gt;
 wherecontains(&lt;br /&gt;
  ri!customField1,&lt;br /&gt;
 touniformstring(&lt;br /&gt;
 local!userDictionary.customField1&lt;br /&gt;
 )&lt;br /&gt;
 ),&lt;br /&gt;
 null&lt;br /&gt;
 )&lt;br /&gt;
 )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username from a custom field.</title><link>https://community.appian.com/thread/53597?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 17:57:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4ed94a9-6756-4b36-81e3-1444a5073181</guid><dc:creator>Amit Mishra</dc:creator><description>&lt;p&gt;Hi Sankalp,&lt;/p&gt;
&lt;p&gt;we don&amp;#39;t have any built in function to achieve this. But you can have a look on Shared Components&amp;nbsp; &lt;a title="Link" href="https://forum.appian.com/suite/tempo/records/item/lEBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUjQmDVAkIm__lAhyaCbv8mcYbyRE-4wU/view/summary"&gt;People Functions - Plug-in&lt;/a&gt;&amp;nbsp; if it helps you. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>