For accounts in Dynamics CRM I have a custom related entity X (one account can have zero or more Xs related to it). On the form of X I want to show a subgrid with all active instances of the same type related to the same account.
Is there a supported way to do this, or do I have to edit the FetchXml on the fly using JS or in the customizations.xml file up front? I have done FetchXml editing in system views to introduce filtering on three or more levels, but I have not done a "loop" before and the same technique fails because the relationship both inwards and outwards in the query is the same.