var grid = parent.document.getElementById("crmGrid");
var fetchXml = grid.control.GetParameter("fetchXmlForFilters");var xmlDoc = $.parseXML(fetchXml);
// here we modify the xmlDoc… Then we modify the fetchXml of the grid:
grid.control.SetParameter("fetchXml", (new XMLSerializer()).serializeToString(xmlDoc));
grid.control.Refresh();
In D365 online the html-structure for the home grid seems to be different than for onprem.
I cannot find any html-element with id "crmGrid", nor any other obvious element that is the grid.
We are currently in a project of migrating the onprem to online and I have a feeling it will be a bummer for them if the same functionality cannot be delivered for the home grid.