I am joining two entities with a fetchxml query.
<fetch top="50" >
<entity name="entity1" >
<attribute name="field1" />
<filter>
</filter>
<link-entity name="entity2" from=".." to=".." alias="aa">
<attribute name="field2" />
<attribute name="field3" />
</link-entity>
</entity>
</fetch>
field 2 and field 3 are lookup and optionset respectively. I am trying to access the values using result['entity2.field2.name'] and result['aa.field3.label'], but i get blank for both.
Is there a way to get these values?