RE: FetchXML Question for SSRS Report
What I am looking for is more like this:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="contact">
<attribute name="firstname" />
<attribute name="lastname" />
<attribute name="cfn_companyname" />
<attribute name="contactid" />
<order attribute="fullname" descending="false" />
<link-entity name="customeraddess" from="parentid" to="contactid" alias="ca">
<attribute name="line1" />
<attribute name="line2" />
<attribute name="city" />
<attribute name="postalcode" />
<attribute name="stateorprovince" />
<filter type="and">
<condition attribute="addressnumber" operator="eq" value=<contact.cfn_mailingto> />
</filter>
</link-entity>
</entity>
</fetch>
Where contact.cfn_cbrmailingto is an option set with the following values:
Primary Address = 1
Mailing Address = 2
Office Address = 3
Home Address = 4
Is there a way I can plug in the cfn_cbrmailingto value in the filter of the link-entity?