Using Under Operator for List Queries

Suppose you want to query all hardware related incidents using the following criteria:  <Criteria xmlns=”http://Microsoft.EnterpriseManagement.Core.Criteria/”>  <Expression>    <SimpleExpression>      <ValueExpressionLeft>        <Property>$Context/Property[Type=’System.WorkItem.Incident’]/Classification$</Property>      </ValueExpressionLeft>      <Operator>Equal</Operator>      <ValueExpressionRight>        <Value>{9C46171F-64A2-B33A-FBD3-D3ED9881CDF6}</Value>      </ValueExpressionRight>    </SimpleExpression>  </Expression></Criteria>   In the above, “9C46171F-64A2-B33A-FBD3-D3ED9881CDF6″ is the ID of list “IncidentClassificationEnum.Hardware”. This criteria works as expected as long as “IncidentClassificationEnum.Hardware” does not have any child lists appended.  However, you may want…

0