Hi @LinnZawWin
Thanks for this.
i tried with the above sample you gave. Challenge with "outer" is, i am unable to track which of the emailids have contacts and no opportunity associated. (Reason being, I need to fire an email with this list of contacts that do not have an opportunity)
in sql terms i want something like
select fullname, emailaddress1,contactid from
dbo.contact
where emailaddress1 in ('nv@nvtest.com','jp@test.com')
and contactid not in
(select parentcontactid from dbo.opportunity) ;
Based on above example you gave, I tried something like this, but not in condition in fetch xml explicitly expects GUID.
<fetch>
<entity name="contact">
<attribute name="fullname" />
<attribute name="emailaddress1" />
<attribute name="contactid" />
<filter type="and">
<condition attribute="emailaddress1" operator="in">
<value>nv@nvtest.com</value>
<value>jp@test.com</value>
</condition>
<condition attribute="contactid" operator="not-in">
<entity name="opportunity">
<attribute name="parentcontactid" />
</condition>
</filter>
</entity>
</condition>
</filter>
</entity>
</fetch>