I set up a filter as
function Form_OnLoad() ... preFilterLookup(); .. }
function preFilterLookup() { Xrm.Page.getControl("a_team").addPreSearch(function () { addLookupFilter(); }); }
function addLookupFilter() { var fetchXml = "....."; Xrm.Page.getControl("a_team").addCustomFilter(fetchXml); }
It gives me correct row results in the lookup view dialog, but filter is lost when I refresh the grid?
Why is happening this?