<?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 search values within constans</title><link>https://community.appian.com/discussions/f/rules/40493/how-to-search-values-within-constans</link><description>Hi All, 
 I have a use case where we have to search for values in numerous constants if it matches a specific email domain. Just applying the search box value isnt productive as it doesnt provide the results with actual constant values, also gives descriptions</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to search values within constans</title><link>https://community.appian.com/thread/154893?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2026 12:39:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efb31f69-5af9-4bdb-afeb-6ac2da9a851d</guid><dc:creator>ericc42</dc:creator><description>&lt;p&gt;Could you&amp;nbsp;make an expression rule like below that builds up array of keys and values with x number of constants:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;a!localVariables(&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;local!allEmails: flatten({ local!const1, local!const2, local!const3 }), &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;local!dictArray: a!forEach( items: local!allEmails, expression: a!map( key: &amp;quot;Email_&amp;quot; &amp;amp; fv!index, value: fv!item ) ),&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt; keys: local!dictArray.key, &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;values: local!dictArray.value&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;And add&amp;nbsp;a foreach to check fv!item for:&amp;nbsp;&amp;nbsp;&amp;nbsp;any(fn!contains(local!dictArray, &amp;quot;mydomain.com&amp;quot;)) &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to search values within constans</title><link>https://community.appian.com/thread/154887?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2026 08:00:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d53bb43-6f7e-4c9f-929d-23996e33341e</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Search in Designer works on name and description of a constant. So best practice is to have values mentioned in the constant&amp;#39;s description for better design experience. It helps in rules also to see the value in description window, without opening the constant object.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to search values within constans</title><link>https://community.appian.com/thread/154885?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2026 07:33:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e73a0638-a373-404e-94d7-8aa4400e8591</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;The design search box won&amp;rsquo;t work. It only matches names/descriptions, never the values inside constants.&lt;/p&gt;
&lt;p&gt;My Suggestion for future proof solution&amp;nbsp;update all&amp;nbsp;constants description. This would be faster and easiest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to search values within constans</title><link>https://community.appian.com/thread/154883?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2026 06:55:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:241a8fc7-1d40-4313-8967-2b22844a8330</guid><dc:creator>KavyaNatrajan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please explain more like add ss or something. Please answer the questions for better understanding.&lt;/p&gt;
&lt;p&gt;Why data is there in appian constant? Is it like one constant holds one data ?&lt;/p&gt;
&lt;p&gt;Searchbox is there in grid?&lt;/p&gt;
&lt;p&gt;Is it a synced record or only tables?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>