<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>What does the &amp;quot;isCriteria&amp;quot; attribute do?</title><link>https://www.aras.com/community/f/getting-started/55485/what-does-the-iscriteria-attribute-do</link><description>Hi Community, 
 what is the purpose of the &amp;quot;isCriteria&amp;quot; attribute? It&amp;#180;s described in the programmers guide like this: 
 &amp;quot;If 0 then include the nested structure for the Item configuration in the response but don&amp;#39;t use it as search criteria. Default is</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: What does the "isCriteria" attribute do?</title><link>https://www.aras.com/community/thread/11075?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2025 13:29:08 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:11c34767-a16a-48b9-b5a1-adfde08b09a0</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Chris&lt;/p&gt;
&lt;p&gt;The samples helped a lot, I see the difference in the result! There are a couple of attributes that are rarely needed, but when they are, they can significantly improve specific use cases.&lt;/p&gt;
&lt;p&gt;&amp;quot;isCriteria&amp;quot; is definitely a niche attribute, but if I remember correctly I once solved something similar with logic ORs and a lot of try and error. Now I know better :).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the fast help!&lt;/p&gt;
&lt;p&gt;Angela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does the "isCriteria" attribute do?</title><link>https://www.aras.com/community/thread/11069?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 18:57:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ba830ed1-0982-4a8f-9e62-ba5208747e2b</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;This is one of those niche attributes which likely is very useful but only in specific circumstances.&lt;/p&gt;
&lt;p&gt;This is intended to be used when you are expanding on Item properties or relationships where you want to expand on some data if it exists, but you don&amp;#39;t want to limit your results if it doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;As an example of an AML query that does change when you use this attribute, we can look at&amp;nbsp;this query where we are trying to get all of our PRs with a specific affected Item.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;&amp;lt;AML&amp;gt;
    &amp;lt;Item type=&amp;quot;PR&amp;quot; action=&amp;quot;get&amp;quot;&amp;gt;
        &amp;lt;affected_item&amp;gt;
            &amp;lt;Item type=&amp;quot;Part&amp;quot; action=&amp;quot;get&amp;quot;&amp;gt;
                &amp;lt;item_number&amp;gt;Part-123&amp;lt;/item_number&amp;gt;
            &amp;lt;/Item&amp;gt;
        &amp;lt;/affected_item&amp;gt;
    &amp;lt;/Item&amp;gt;
&amp;lt;/AML&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the above example, we would get only the&amp;nbsp;PRs with specifically Part-123 as the affected item. If we instead change this query to use the `isCriteria` attribute:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;&amp;lt;AML&amp;gt;
    &amp;lt;Item type=&amp;quot;PR&amp;quot; action=&amp;quot;get&amp;quot;&amp;gt;
        &amp;lt;affected_item&amp;gt;
            &amp;lt;Item type=&amp;quot;Part&amp;quot; action=&amp;quot;get&amp;quot; isCriteria=&amp;quot;0&amp;quot;&amp;gt;
                &amp;lt;item_number&amp;gt;Part-123&amp;lt;/item_number&amp;gt;
            &amp;lt;/Item&amp;gt;
        &amp;lt;/affected_item&amp;gt;
    &amp;lt;/Item&amp;gt;
&amp;lt;/AML&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;We will get all of the PRs in our database whether or not the affected item is Part-123. The only difference is that the&amp;nbsp;&lt;strong&gt;affected_item&lt;/strong&gt; property in this example will be expanded for specifically those PRs that do have Part-123 as its affected item.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>