Unable to read the linked entity attribute name in JavaScript

Oct 16, 2014 at 12:56 PM

I've used the XRMToolkit to execute the fetchxml in JavaScript. In my fetchxml I am using link entity to link Entity B from Entity A. Now, after successfully executing the fetchxml in call back method I can read the attributes of entity A (primary entity of fetchxml) by


Note, the "i" is an incremental variable to iterate through all fetched records.

The problem is I'm unable to read the attributes of entity B in similar fashion. When I try to do that with alias name of entity B it does not fetch value for that alias. The value of alias is empty though I can see the value while doing "quick watch" in visual studio for


So, how to read the value/data of attribute of related/linked entity?

Any quick help would be much appreciated.

Oct 19, 2014 at 2:46 PM
Hi There.

Related/Linked Entities are not handled in the current fetch method. It is a work item I always want to look at and see how it will impact performance.

For now, you may have to do two queries to retrieve related entities.

Kind Regards,