Dear community,
I'm having trouble with this one. I have found some answers on the net but still i cannot figure it out. Following situation:
I need to show on the system view additional attributes, which is not possible by customizing through the native customization possibilities (customization through web interface of CRM). So this is my requirement:
I have one systemview of entity A, there is a n-1 relationship to entity A-Father (entity A n-1 entity A-Father). Showing the attributes of A-Father is of course possible in the system views through normal customization.
But I have an additional entity A-Grandfather (entity A-Father n-1 entity A-Grandfather). I actually need to show in my systemview columns attributes from A-Grandfather. So I exported my entity A solution and changed the fetchXML and the LayoutXML from the specific system view. Im 100% sure that my fetchXML is right, as I tested it. I guess my problem is the layoutXML, which after import (and after opening the system view) gives me the error:
<Message>A primary entity column cannot have a dot in its name</Message>
Quite strange for me, as I added the "dot" in the grandfather the same way crm adds it (itself) on the father entity.
Here is my XML:
<layoutxml>
<grid name="resultset" object="10032" jump="new_name" select="0" icon="0" preview="0">
<row name="result" id="new_mietvertragid">
<cell name="a_65f198b7003ee111b1f000155d0a3339.new_vorname" width="100" disableSorting="1" />
<cell name="a_65f198b7003ee111b1f000155d0a3339.new_name" width="100" disableSorting="1" />
<cell name="new_activeon" width="150" />
<cell name="a_9c58c04d5f09e211ab0300155d0a333b.new_gebaeude_raum_lookup" width="100" disableSorting="1" />
<cell name="entityb.new_strae" width="100" disableSorting="1" />
<cell name="entityb.new_plz" width="100" disableSorting="1" />
<cell name="entityb.new_ort" width="100" disableSorting="1" />
</row>
</grid>
</layoutxml>
<querytype>0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="new_mietvertrag">
<attribute name="new_activeon" />
<order attribute="new_activeon" descending="false" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="new_gemeldetpost" operator="ne" value="100000001" />
</filter>
<link-entity name="new_mieter2" from="new_mieter2id" to="new_new_mieter2_new_mietvertrag_lkp" visible="false" link-type="outer" alias="a_65f198b7003ee111b1f000155d0a3339">
<attribute name="new_vorname" />
<attribute name="new_name" />
</link-entity>
<link-entity name="new_raum_neu" from="new_raum_neuid" to="new_raumid" visible="false" link-type="outer" alias="a_9c58c04d5f09e211ab0300155d0a333b">
<attribute name="new_gebaeude_raum_lookup" />
<link-entity name="new_gebude" from="new_gebudeid" to="new_gebaeude_raum_lookup" visible="false" link-type="outer" alias="entityb" >
<attribute name="new_strae" />
<attribute name="new_plz" />
<attribute name="new_ort" />
</link-entity>
</link-entity>
<attribute name="new_mietvertragid" />
</entity>
</fetch>
</fetchxml>Here is the XML before my customization:
<layoutxml>
<grid name="resultset" object="10032" jump="new_name" select="1" icon="1" preview="1">
<row name="result" id="new_mietvertragid">
<cell name="a_65f198b7003ee111b1f000155d0a3339.new_vorname" width="100" disableSorting="1" />
<cell name="a_65f198b7003ee111b1f000155d0a3339.new_name" width="100" disableSorting="1" />
<cell name="new_activeon" width="150" />
<cell name="a_9c58c04d5f09e211ab0300155d0a333b.new_gebaeude_raum_lookup" width="100" disableSorting="1" />
</row>
</grid>
</layoutxml>
<querytype>0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="new_mietvertrag">
<attribute name="new_activeon" />
<order attribute="new_activeon" descending="false" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="new_gemeldetpost" operator="ne" value="100000001" />
</filter>
<link-entity name="new_mieter2" from="new_mieter2id" to="new_new_mieter2_new_mietvertrag_lkp" visible="false" link-type="outer" alias="a_65f198b7003ee111b1f000155d0a3339">
<attribute name="new_vorname" />
<attribute name="new_name" />
</link-entity>
<link-entity name="new_raum_neu" from="new_raum_neuid" to="new_raumid" visible="false" link-type="outer" alias="a_9c58c04d5f09e211ab0300155d0a333b">
<attribute name="new_gebaeude_raum_lookup" />
</link-entity>
<attribute name="new_mietvertragid" />
</entity>
</fetch>
</fetchxml>I'm having a feeling here, the linking deeper in fetchXML is somehow not supported, but I couldnt find anywhere that it actually is like that.
I would appreciate any help here.
Thanks a lot