Hi,
I hope you can help me with this. I have the below relationships from customer asset to work order incident (Standard MS)
I also stated some values that should be used in the fetch. The value on the customer asset field cus1_parentassetid is only temporary to narrow results down.
I wan't only the customer asset to be shown if a linked entity work order incident have the value 770810001 in field cus1_workorderstatusvalue. However if a linked work order incident have the value 770810002 in field cus1_workorderstatusvalue then there shouldnt be shown any results / customer assets. I tried with standard CRM but couldnt get it to work. Then i thought i would need to create an outer joint but can't get that working either (usually it will display one or two results no matter what i try instead of zero).

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" ><entity name="msdyn_customerasset" ><attribute name="msdyn_customerassetid" /><order attribute="msdyn_name" descending="false" /><filter type="and" ><condition attribute="cus1_parentassetid" operator="eq" value="116464" /><condition entityname="woinc" attribute="cus1_workorderstatusvalue" operator="eq" value="770810000" /><condition entityname="woinc" attribute="cus1_workorderstatusvalue" operator="neq" value="770810001" /></filter><link-entity name="msdyn_workorderincident" from="msdyn_customerasset" to="msdyn_customerassetid" link-type="outer" alias="woinc" ><attribute name="cus1_workorderstatusvalue" /><filter/></link-entity></entity></fetch>







