Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

fetchXML not returning linkedentity attributes in portal

$
0
0

Hi

I have a custom entity which is linked to contact. I am trying to run the fetchxml in my liquid template. I copy pasted the fetchxml from advance find into my web template. I am not able to see the attribute emailaddress1 from the contact. I did the inspect on chrome but could not find the values for emailaddress1. However if I display any other attribute from the first entity it does showup in developer tool. Is there anything I am missing ?

My web template looks like this.

{% fetchxml DraftRequests %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="rdm_webrequest">
<attribute name="rdm_ticketnumber" />
<attribute name="modifiedon" />
<attribute name="createdon" />
<attribute name="rdm_webebcrequestid" />
<order attribute="createdon" descending="true" />
<order attribute="rdm_ticketnumber" descending="false" />
<filter type="and">
<condition attribute="rdm_requeststatus" operator="eq" value="175650000" />
</filter>
<link-entity name="contact" from="contactid" to="rdm_requesterid" visible="false" link-type="outer" alias="a_5335e3b012b4eb1182360022481c17c9">
<attribute name="emailaddress1" />
</link-entity>
</entity>
</fetch>
{% endfetchxml %}

<div>
<select id="my_requests_drafts" >
{% for result in DraftRequests.results.entities %}
{{result.emailaddress1}}

{% endfor %}
</select>
</div>


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>