Hi everyone!
I 've used in the past fetchxml in order to presearch a lookup , however it doesn't seem to work on this case. I have a boolean Field Occupied and i want to get all map codes that are not occupied.
function preFilterLookup() { Xrm.Page.getControl("ral_mapcode").addPreSearch(function () { addLookupFilter(); }); } function addLookupFilter() { var fetchXml = "<filter type='and'><condition attribute='ral_occupied' operator='eq' value='" 'No' "' /></filter>"; Xrm.Page.getControl("ral_mapcode").addCustomFilter(fetchXml); //} }
I was wondering if need to change the value to False but that didn't work as well. Any ideas?