<?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>Expression rule to get indistinct details</title><link>https://community.appian.com/discussions/f/rules/28032/expression-rule-to-get-indistinct-details</link><description>Hi, 
 I have below rule which gives output for distinct values only, but I want get output for indistinct values also. 
 For Ex: If I give rule input for groupId_int as {496,496,498} , I should get output for all 3 values though it repeats for 496 two</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Expression rule to get indistinct details</title><link>https://community.appian.com/thread/109129?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 17:17:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8e04d36-86af-4283-96d0-f630aa059f19</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;As Stefan mentioned, query the distinct data on load and use the onload data to do the foreach on your group ids to get&amp;nbsp;the data for your expected output. Don&amp;#39;t do foreach on query itself which causes performance issues.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression rule to get indistinct details</title><link>https://community.appian.com/thread/109111?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:49:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:994a2115-1a8d-4729-8b35-97589d120eab</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;It seems you are querying based on the result from&amp;nbsp;ri!groupId_int(), and the database table will have only one record for 496 and hence it returned one resultset for 496. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression rule to get indistinct details</title><link>https://community.appian.com/thread/109085?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 10:46:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7e34c2a-0fce-4ad6-b580-51057465ee76</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Doing a query in a foreach is a bad practice in terms of performance and memory consumption.&lt;/p&gt;
&lt;p&gt;But, you could fetch the distinct items first, and then use a foreach on the incoming IDs to return the corresponding items.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression rule to get indistinct details</title><link>https://community.appian.com/thread/109082?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 10:32:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1491573f-1be9-4f4e-9aa2-879de5a52a4f</guid><dc:creator>pragna jadda</dc:creator><description>&lt;p&gt;use a!for each in query filter group_Id. so query will execute each iteration.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>