Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
9 years ago

Filter using logical operator

Hi , I am trying to apply filter on different attributes of a Part . Condition 1:  <Item action="get" type="Part" > <name>Tank Assembly</name> <generation>3</generation> </Item> For above AML , I am getting 1 object in the result set .   Condition 2 <Item action="get" type="Part" > <AND> <name>Tank Assembly</name> <generation>3</generation> </AND> </Item> For above AML , I am getting 0 object in the result set . Can anybody please explain me what is the difference between both queries . Is there anything I am missing ? Also there are total 4 generations of the that Part . Thanks !

1 Reply

  • eli_donahue's avatar
    eli_donahue
    Community Manager
    Hi Ketan, This looks like unexpected behavior. I am able to reproduce the behavior in my local instance, so I've passed it on to our development team to investigate. For now, I recommend leaving out the <AND> tags in your AML. By default, AML treats property criteria as if it's wrapped in an <AND> tag unless otherwise specified.
    Eli Donahue Aras Labs Software Engineer