Hi
I wrote a fetch query
<fetch mapping='logical'>
<entity name='account'>
<all-attributes />
<link-entity name='opportunity' to='accountid' from='customerid'>
<filter type='and'>
<condition attribute="ns_program" operator="eq" value="8887227e-ca21-e611-80e7-c4346bdc0361"/>
</filter>
</link-entity>
<filter type='or'>
<condition attribute="customertypecode" operator="eq" value="717690000"/>
<condition attribute="customertypecode" operator="eq" value="717690001"/>
</filter>
</entity>
</fetch>
But i suspect that results are not as desired. I want to fetch all account record which are connected with opportunities where opportunity.ns_program is '8887227e-ca21-e611-80e7-c4346bdc0361' and account.customertypecode is either 717690000 or 717690000
Can you help to validate if the logic written is correct.
Regards
*This post is locked for comments
I have the same question (0)