Can Fetch-XML for a sub-grid view be written to include a field value on the record?
I have a custom entity with a lookup to Account.
I would like to have a sub-grid of Cases related to that Account; the grid would show Cases related to the Account related to this custom entity instead of Cases related to the custom entity.
Asked
Active
Viewed 1,031 times
0

Bvrce
- 2,170
- 2
- 27
- 45
1 Answers
1
Yes is possible, but is an unsupported customization.
You can find an example here: Filter Sub-Grid Dynamics CRM 2011 Rollup 12 (Polaris)
Pay attention to the rollup version of your crm environment.

Guido Preite
- 14,905
- 4
- 36
- 65
-
I am getting the grid like this: Xrm.Page.ui.controls.get("accountcases")._control and changing the fetchXml like this grid.get_innerControl().SetParameter("fetchXml", fetch) where var fetch contains the new fetchXml. Is this supported? I am only using Xrm to access elements. – Bvrce Apr 24 '13 at 11:57
-
get_innerControl and SetParameter are unsupported methods. Maybe they will work forever, maybe not. Is necessary when a new rollup is out to check if the scripts are still working. – Guido Preite Apr 24 '13 at 12:35