I am trying to figure out if it is possible to show related records in a sub-grid from a second level relationship by tweaking FetchXML (and not using code).
The end goal is to show a sub-grid on my Country form (custom entity) displaying the opportunities, where the accounts are in this country. E.g. if I open up the Germany country record, show a sub-grid with all opportunities, where accounts related to the opportunity are in Germany.
There is no direct relationship between the opportunity entity and the country entity. The relationship only exists between the account and country entity.
Opportunity
⬆
Account
⬆
Country
I have tried messing around with FetchXML Builder but I have not found a solution. If it is not possible, an alternative solution could be to populate a custom lookup field on the opportunity based on the country of the account.
However, if the can be achieved without having to create that - that would be preferable.
#Functional
------------------------------
BR,
Niels
------------------------------