Hello,
So im trying to filter a lookup using addPreSearch, i have done it before but the fetchXml was pretty straight forward and i could use a connection between the two entities.
This is the fetch i need to use now, and i know i read somewhere that this type of fetch cannot be executed when you have a link-entity in the fetch.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="new_wineregion"> <attribute name="new_wineregionid" /> <attribute name="new_name" /> <attribute name="createdon" /> <order attribute="new_name" descending="false" /> <link-entity name="product" from="new_wineregion" to="new_wineregionid" alias="ad"> <filter type="and"> <condition attribute="new_vendor" operator="eq" uiname="Martin Stein" uitype="account" value="{F2183A76-A9C0-E711-80F6-000C2939F531}" /> </filter> </link-entity> </entity> </fetch>
Should i divert to using addCustomFilter instead? It looks a bit more messy as i need to create also the layout of the fetch...so i'm hoping i can avoid it....
Any advice is welcomed
*This post is locked for comments