<?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 Rules</title><link>https://community.appian.com/discussions/f/general/30151/expression-rules</link><description>I have record type that get its source from data store entity and it has default filter and other user filters how can i query the same data using expression rule ? 
 for example we have fields in the data store entity startedBy , status , location ,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119900?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 17:12:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:804ee75e-d19d-4165-9612-72742e958bfc</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Maybe you want to check out this list of query recipes to understand how this works.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Query_Recipes.html"&gt;https://docs.appian.com/suite/help/23.3/Query_Recipes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119897?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 16:45:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ee8e8d4-d4fa-47f7-8b64-cf3e7b276856</guid><dc:creator>saras3430</dc:creator><description>&lt;p&gt;yes I already tried to do that many times but I will try again thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119896?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 16:38:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:931ac2fd-f645-4416-840a-b5a04e492dd4</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="125197" url="~/discussions/f/general/30151/expression-rules/119895#119895"]how can I&amp;nbsp; do these nested conditions in the expression rule ?[/quote]
&lt;p&gt;You can nest Logical Expressions within other Logical Expressions, creating complex conditions that AFAIK can handle pretty much any requirement for complexity.&amp;nbsp; I can&amp;#39;t begin to guess as to what exactly your use case here requires, but if you take the time to learn how this nesting works, you should be able to figure it out for yourself pretty easily.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119895?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 16:34:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dad10b8e-cc0f-4ba8-88df-f49a2e879f6b</guid><dc:creator>saras3430</dc:creator><description>&lt;p&gt;my question is how can I&amp;nbsp; do these nested conditions in the expression rule ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119894?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 16:32:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:023c7fdf-43f8-43f2-99d8-29ac183fd37f</guid><dc:creator>saras3430</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!queryLogicalExpression(
operator: &amp;quot;OR&amp;quot;,
filters: {
a!queryFilter(
field:&amp;quot;status&amp;quot;,
operator: &amp;quot;=&amp;quot;,
value: 2,
applywhen: a!isUserMemberOfGroup(loggedInUser(), cons!SP_MANAGER_GROUP)
),
a!queryFilter(
field: &amp;quot;startedBy&amp;quot;,
operator: &amp;quot;=&amp;quot;,
value: loggedInUser()
  )
 }
)

/*.....*/

logicalExpressions: 
a!queryLogicalExpression(
operator: &amp;quot;OR&amp;quot;,
filters: {

a!queryFilter(
field: &amp;quot;empId&amp;quot;,
operator: &amp;quot;=&amp;quot;,
value:tointeger(ri!searchText),
applyWhen:a!isNotNullOrEmpty(ri!searchText)
),
a!queryFilter(
field: &amp;quot;startedBy&amp;quot;,
operator: &amp;quot;includes&amp;quot;,
value: ri!searchText,
applyWhen:a!isNotNullOrEmpty(ri!searchText)
),

/*.....*/

a!queryLogicalExpression(
operator: &amp;quot;AND&amp;quot;,
filters: {
a!queryFilter(
field: &amp;quot;addedOn&amp;quot;,
operator: &amp;quot;between&amp;quot;,
value: 
{ri!createdOn - intervalds(&amp;quot;2&amp;quot;, &amp;quot;59&amp;quot;, &amp;quot;00&amp;quot;),(ri!createdOn + 1) - intervalds(&amp;quot;2&amp;quot;, &amp;quot;59&amp;quot;, &amp;quot;00&amp;quot;)},
applyWhen: a!isNotNullOrEmpty(ri!createdOn)
),
a!queryFilter(
field: &amp;quot;location&amp;quot;,
operator: &amp;quot;in&amp;quot;,
value:ri!selectedLocation ,
applyWhen: a!isNotNullOrEmpty(ri!createdOn)
)
},
ignoreFiltersWithEmptyValues: true()
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression Rules</title><link>https://community.appian.com/thread/119893?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 16:17:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04ce48c7-c895-49a2-b30f-29e29e469f74</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Firstly, please use the &amp;#39;Insert&amp;gt;Insert Code&amp;#39; option to drop code snippets into your posts, it makes it much easier for folk to read, copy etc.&lt;/p&gt;
&lt;p&gt;Secondly: I&amp;#39;m not sure what you mean when you say &amp;quot;&lt;span&gt;put them all&amp;nbsp;together&amp;nbsp; to&amp;nbsp; get the right data&amp;quot;...what do&amp;nbsp;you think is wrong? Or do you simply not know where to add these filters?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>