<?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>need to get null value rows data</title><link>https://community.appian.com/discussions/f/rules/38718/need-to-get-null-value-rows-data</link><description>I am working on an expression rule. In that rule, I need to get rows with null values as output. I am providing some map inputs like {username: test, fname: test1, lname: test2, email: test@gmail.com , username: test, fname: test1, lname: test2, email</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146332?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 14:11:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60556c17-9192-4733-9930-b32cf2559b59</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;first, you don&amp;#39;t need the final &amp;quot;reject&amp;quot; function call - simply return {} instead of null in your original loop (then wrap in a!flatten to handle the case of ALL nulls), and this constructs your final list correctly&amp;nbsp; (assuming the value you&amp;#39;re passing in for &amp;quot;ri!users&amp;quot; was even correct, though you didn&amp;#39;t really show us what its value was).&lt;/p&gt;
&lt;p&gt;This is pretty easy to convert into an all-self-contained example, which i&amp;#39;ve done here. and as you can see, the results are pretty much as-expected.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!users: {
    a!map(
      username: &amp;quot;ssmith&amp;quot;,
      firstname: &amp;quot;sally&amp;quot;,
      lastname: &amp;quot;smith&amp;quot;,
      email: &amp;quot;sally@smith.net&amp;quot;
    ),
    a!map(
      username: &amp;quot;mroberts&amp;quot;,
      firstname: &amp;quot;&amp;quot;,
      lastname: &amp;quot;roberts&amp;quot;,
      email: &amp;quot;mike@roberts.net&amp;quot;
    ),
    a!map(
      username: &amp;quot;ajohns&amp;quot;,
      firstname: &amp;quot;andrew&amp;quot;,
      lastname: &amp;quot;johns&amp;quot;,
      email: &amp;quot;&amp;quot;
    )
  },
  local!nullValueUsers: a!flatten(a!forEach(
    items: local!users,
    expression: if(
      or(
        a!isNullOrEmpty(fv!item.username),
        a!isNullOrEmpty(fv!item.firstname),
        a!isNullOrEmpty(fv!item.lastname),
        a!isNullOrEmpty(fv!item.email)
      ),
      fv!item,
      {}
    )
  )),
  
  /*local!nulldataValueUsers: reject(fn!isnull, local!nullValueUsers),*/
  /*local!nulldataValueUsers*/
  
  local!nullValueUsers
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1742307022025v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146331?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 13:35:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b3aa490-60d8-4984-bacd-1ef50c8f7c56</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1742304656411v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If this is what you looking for then I can say your conditions are correct but, you need to change the indexing in&amp;nbsp; local!users .In your input map you have first name as fname and&amp;nbsp; Last name as lname but you are indexing them wrong.&lt;/p&gt;
&lt;p&gt;Other wise just like stefan mentioned we need more details&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146330?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 13:29:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76a85b7c-ee81-4fc5-889c-0d42c5a60176</guid><dc:creator>ericc087568</dc:creator><description>&lt;p&gt;Is your &amp;#39;local!users&amp;#39; assignment done by the time you are looping through for the local!nullValueUsers assignment?&amp;nbsp; Does anything change if you were to use ri!users directly on line 12 instead of the local!users?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146328?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 11:42:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:123976c2-2467-4a31-bf30-5b3f4fc222b7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you share a fully working example, including data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146324?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 09:58:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1efd274d-7413-4d5d-9277-e16757fb628a</guid><dc:creator>shivat246139</dc:creator><description>&lt;p&gt;output still same :&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_non_value"&gt;List of Text String - 1 item&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;ul class="SelectableTreeNode---nonComponentConfigParam"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Text)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need to get null value rows data</title><link>https://community.appian.com/thread/146323?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 09:51:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1875abb6-593f-4469-8211-04f8e12cc66c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If you are looking to identify the empty email field, isnull() does not help. isNullOrEmpty() might be what you are looking for.&lt;/p&gt;
&lt;p&gt;For more insights on null checking:&amp;nbsp;&lt;a href="https://appian.rocks/2022/10/17/the-magic-of-null-checking/"&gt;appian.rocks/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>