<?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>Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/discussions/f/data/28239/want-to-add-two-user-filters-in-record-which-will-be-fetching-the-data-from-db-two-columns</link><description>Hi 
 I want to add two user filters in record the data to those two filters is two columns data from DB when i tried was getting error like below 
 And the data have duplicate values but need unique values only kindly suggest for this also 
 a!recordFilterList</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110403?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 07:15:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:882f393d-7363-44aa-810c-7a802d0f03dc</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;Thank you so much for the response Sanchit&lt;/p&gt;
&lt;p&gt;yeah changed to fv!index and even after changing got the same error later i removed querying the field from record and passed the field name directly as the local!info has having the entity defined which has the field it worked&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110317?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 21:39:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4728a9fe-2175-4f21-b01c-d327ae468406</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;You are using fv!item for id parameter in recordFilterListOption which will pass string value to it and it expects a unique integer value. Can you please change it to fv!index and try then&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110308?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 19:05:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37eb1341-c535-46c5-bd84-bce61e08fcbb</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;yeah sure please find the below snippet the type of that field is varchar&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1680203069606v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And also the data displaying in filter after selecting fields in drop down was getting error mentioned above&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1680203130969v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110305?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 18:56:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a26dc2ee-dfa8-477c-9b61-0d24bf0762d4</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Yeah same for me, can you attach the snapshot of the code where you are referencing record field? and if you are passing it correctly then what is the type of&amp;nbsp;that field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110302?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 18:45:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:adde270b-8be4-4948-aaae-53de8726c2a5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Are you sure that you got the field name in the query filter correct? When I copy a record field it looks like this:&lt;/p&gt;
&lt;p&gt;&amp;#39;recordType!{cdfcd692-0d4c-42d1-b271-64460f461119}AA Vehicle.fields.{cdd94728-8bd5-47aa-aa56-95e425154a55}vehicleimage&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110301?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 18:06:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c85d0f3e-1f81-4ac7-9515-63457566a76d</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;went through document now i am able to fetch the data but after selecting the data to filter was getting below error&lt;/p&gt;
&lt;p&gt;Error:&lt;/p&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---middle"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction appian-context-last-in-list"&gt;
&lt;div class=""&gt;
&lt;h4 class="HeaderText---richtext_header HeaderText---align_start"&gt;The Requested Record Type Is Not Available&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;Could not parse expression [#"urn:appian:record-field:v1:011945f7-fcd7-40f7-946b-097dba99dbfd/wbs"]. Details: Unexpected count of record variables (APNX-1-4198-001)&lt;/p&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;Code:&lt;/p&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!info:a!queryEntity(
    entity: cons!ATRFA_ENTITY_SETTLE_REQUEST,
    query: a!query(
      aggregation: a!queryAggregation(
        aggregationColumns: {
          a!queryAggregationColumn(
            field: &amp;quot;wbs&amp;quot;,
            isGrouping: true
          )
        }
      ),
      pagingInfo: a!pagingInfo(
        startIndex: 1,
        batchSize: 50
      )
    ),
    fetchTotalCount: false
  ).data.wbs,
a!recordFilterList(
  name: &amp;quot;wbs&amp;quot;,
  options: a!forEach(
    items: local!info,
    expression: a!recordFilterListOption(
      id: fv!item,
      name: fv!item,
      filter: a!queryFilter(
        field: &amp;#39;recordType!{011945f7-fcd7-40f7-946b-097dba99dbfd}ATRFA_Settle_Request.fields.{wbs}wbs&amp;#39;,
        operator: &amp;quot;=&amp;quot;,
        value: fv!item
      )
    )
  )
)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110296?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 17:41:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfb95c7e-ca76-475a-8411-607fb7a6b903</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;Thank you for the response Sanchit&lt;/p&gt;
&lt;p&gt;yeah i tried with my code only with example provided will go through the documentation thoroughly and will check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110294?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 17:17:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ec2eb0d-3460-4298-b06a-571731cc6fe5</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;That code in documentation is just an example code for how your recordFilterList() will look like, you need to use recordType! domain to reference any record fields in queryFilter. Check&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/filter-the-record-list.html#expression-based-user-filters"&gt;this&lt;/a&gt;&amp;nbsp;(this link was also there on the link that Stefan provided ) example and try to apply it to your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110293?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 17:10:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ee32524-7dd2-41b7-9ce6-73edd61b2b17</guid><dc:creator>dharanik2600</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;Thank you for the response&lt;/p&gt;
&lt;p&gt;Tried in similar kind of way like mentioned but it didnt fetched the data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110291?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 16:49:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ac44d12-f422-4d06-87d5-b836387fa9c5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I suggest to visit the documentation of how to configure this.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/fnc_system_a_recordfilterlist.html#example"&gt;https://docs.appian.com/suite/help/23.1/fnc_system_a_recordfilterlist.html#example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And then&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1680195041420v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to add two user filters in Record which will be fetching the data from DB two columns</title><link>https://community.appian.com/thread/110290?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 16:47:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81f875d2-871a-44d3-b359-1a640fe539d2</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Check the value in cons!ATRFA_ENTITY_SETTLE_REQUEST. It contains Data store entity, and you are trying to index text value from it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>