Hi All,
I'm facing problems with a lookup field that filters based on the value of another field.
This is triggered on a field in Business Process Flow (BPF).
In-Depth: Field A (Products) must be filtered by Parent Family, which is set on field B. (Parent). As a new view, this used to show related products, but now it shows all products.
I used Pre-Search function which worked fine until few weeks on my notice (not sure how long was this un-noticed).
When I run the same code now, it says "No Records Found..." even though there are records available.
AddPreSearch function contains
if(formContext.getControl("cf_childprod")){
var fetchXml = "";
var guidofParentProduct = formContext.getAttribute("cf_ParentProduct").getValue()[0].id;
fetchXml = "<filter type='and'><condition attribute='statecode' operator='eq' value='0' /><condition attribute='parentproductid' operator='eq' uitype='product' value='"+guidofParentProduct+"' /></filter>";
var ChildProduct = formContext.getControl("cf_childprod");
ChildProduct.addCustomFilter(fetchXml);
}
I don't know what has changed, fetchXml tester shows records but view doesn't show records.
I thought this was related to Advance Lookup that got released from MS. Ref Link
I don't see toggle option to disable that.

I don't know if this affects the behavior in lookup view by any ways...
Kindly advise what has changed.
Thanks