<?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>Retrieve every data from database without one field using rule</title><link>https://community.appian.com/discussions/f/rules/25334/retrieve-every-data-from-database-without-one-field-using-rule</link><description>Expression Rule : 
 cast(&amp;#39;type!{urn:com:appian:types:HSM}HSM_Elements?list&amp;#39;, a!queryEntity( entity: cons!HSM_Entity, query: a!query( pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 5000, sort: a!sortInfo( field:&amp;quot;S_No&amp;quot;, ascending: true, ) ) ) ).data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98536?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 11:50:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8791b4df-714b-42e6-a533-ab7aaa79f1b5</guid><dc:creator>aditya007</dc:creator><description>&lt;p&gt;&lt;span&gt;You can use the &amp;#39;selection&amp;#39; parameter in the a!query() to pass all the other field names except status.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98533?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 11:09:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81750fd6-478f-4722-a4ca-c1cd761911ce</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Great. If it has worked for you, please consider accepting the answer. It helps other people look for the solution quickly and also saves time for other contributors as they&amp;#39;ll know the author has already found a solution to the problem.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98532?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 11:00:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fba9bb4-9678-461a-9a1a-ddaa66522414</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;You have to use selection concept for it. queryselection()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98526?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 10:37:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b4a8e2a-1fc1-4db4-aced-ba48cfd72baa</guid><dc:creator>karthick</dc:creator><description>&lt;p&gt;Thank You for your support Harshit.&lt;/p&gt;
&lt;p&gt;It works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98524?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 10:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f157b5f-aa40-4f6d-9857-c38b6c5118b9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;A queryColumn can only have &lt;strong&gt;one&amp;nbsp;&lt;/strong&gt;column name. And hence you will have to add multiple query columns.&amp;nbsp;&lt;br /&gt;Check the code below..&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(&amp;#39;type!{urn:com:appian:types:HSM}HSM_Elements?list&amp;#39;,
  a!queryEntity(
    entity: cons!HSM_Entity,
    query: a!query(
      selection:a!querySelection(
        columns: {
          a!queryColumn(
            field:&amp;quot;S_No&amp;quot;,
          ),
          a!queryColumn(
            field:&amp;quot;Employee_Name&amp;quot;,
          ),
          a!queryColumn(
            field:&amp;quot;Employee_Id&amp;quot;,
          )
        }
      ),
      pagingInfo: a!pagingInfo(
        startIndex: 1,
        batchSize: 5000,
        sort: a!sortInfo(
          field:&amp;quot;S_No&amp;quot;,
          ascending: true,
        )
      )
    )
  ).data
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98523?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 10:10:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0ab72a0-7969-4f7b-a7ca-9be827db0288</guid><dc:creator>karthick</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/Screenshot-_2800_5_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have added &amp;#39;selection&amp;#39; paramater in the a!query. And also passed all fields excep status.&lt;/p&gt;
&lt;p&gt;But it shows an error like in above template.&lt;/p&gt;
&lt;p&gt;My Updated Code:&lt;/p&gt;
&lt;p&gt;cast(&amp;#39;type!{urn:com:appian:types:HSM}HSM_Elements?list&amp;#39;,&lt;br /&gt; a!queryEntity(&lt;br /&gt; entity: cons!HSM_Entity,&lt;br /&gt; query: a!query(&lt;br /&gt; selection:a!querySelection(&lt;br /&gt; Columns: a!queryColumn(&lt;br /&gt; field:{&amp;quot;S_No&amp;quot;,&amp;quot;Employee_Name&amp;quot;,&amp;quot;Employee_Id&amp;quot;,&amp;quot;Employee_Email_Id&amp;quot;,&amp;quot;Query&amp;quot;,&amp;quot;Comments&amp;quot;,&amp;quot;Date&amp;quot;}, &lt;br /&gt; )&lt;br /&gt; ), &lt;br /&gt; pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 5000,&lt;br /&gt; sort: a!sortInfo(&lt;br /&gt; field:&amp;quot;S_No&amp;quot;,&lt;br /&gt; ascending: true,&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ).data&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve every data from database without one field using rule</title><link>https://community.appian.com/thread/98518?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 09:08:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c05454cc-d93b-4d97-b85b-f20e9c5f97f0</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You can use the &amp;#39;selection&amp;#39; parameter in the a!query() to pass all the other field names except status.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>