<?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>DropDown value with expression rule</title><link>https://community.appian.com/discussions/f/best-practices/34757/dropdown-value-with-expression-rule</link><description>Hi！ 
 As my requirement i need to queryRecordtype . Based on the results of a query using an expression rule in the interface dropdown I would like to select id when name is selected as shown in the image below. 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: DropDown value with expression rule</title><link>https://community.appian.com/thread/134058?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 17:02:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc9edbbc-346f-4afe-8498-879243506352</guid><dc:creator>spykid</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your help.&lt;/p&gt;
&lt;p&gt;I solved my problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DropDown value with expression rule</title><link>https://community.appian.com/thread/134056?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 16:37:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5969c6f4-4b42-40d3-8919-7c3b25ae8238</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Simply index the name for the choice labels and ID for the choice values.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data:rule!DATA_ExpressionHere(isActive: true),
  local!val,
  a!dropdownField(
    placeholder: &amp;quot;Select&amp;quot;,
    choiceLabels: index(local!data,&amp;#39;recordType!recordType.fields.label&amp;#39;,null),
    choiceValues:  index(local!data,&amp;#39;recordType!recordType.fields.id&amp;#39;,null),
    saveInto: local!val,
    value: local!val
  )
)&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DropDown value with expression rule</title><link>https://community.appian.com/thread/134055?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 16:36:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b59834a-3666-42f8-8560-e5932ab1620d</guid><dc:creator>spykid</dc:creator><description>&lt;p&gt;My question is......&lt;/p&gt;
&lt;p&gt;In the attached image, I was able to use recordtype, but if I use an expression rule, how can I&amp;nbsp; get ID when I select Name?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DropDown value with expression rule</title><link>https://community.appian.com/thread/134052?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 16:24:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5830364-c097-48d0-9d50-389872928281</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;And the question is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>