I am trying to build a fetch xml with a complicated filter. filter is like the where clause of sql as below:
Where
(
(EntityA.Attribute1 = val1 and EntityB.Attribute2=val2)
OR
(EntityA.Attribute1 = val3 and EntityB.Attribute2=val4)
)
AND
(
(EntityC.Attribute3 = val5 and EntityD.Attribute4=val6)
OR
(EntityC.Attribute3 = val7 and EntityD.Attribute4=val8)
)
How to build this fetchxml?
thanks,