Hi,
cus1_parentassetid is just a custom field with a unique number generated for each customer asset. It is not the same as parentasset.
I tried your query. However it's still not working - something is not right.
I have one work order incident with the cus1_workorderstatusvalue = 770810001
And one work order incident with the cus1_workorderstatusvalue = 770810002
Therefore in total 2 work order incidents related to my customer asset.
If i run the query only with this condition <condition attribute="cus1_workorderstatusvalue" operator="eq" value="770810001" /> i get 1 record.
If i run the query (<condition attribute="cus1_workorderstatusvalue" operator="eq" value="770810001" />) with the same condition with operator equal and replaces workorderstatusvalue = 770810002 then i get 1 record.
So i can conclude that there is 2 records found. This is as expected.
Howvever when i combine the following i still get 1 result. I would have expected 0 results. As i have a record with the value 770810002 and i stated that that it should be not-equal that value?
<condition attribute="cus1_workorderstatusvalue" operator="eq" value="770810001" />
<condition attribute="cus1_workorderstatusvalue" operator="ne" value="770810002" />
I suspect that the query is only validating the condition agains the first ressult found and not if many results are found?