Hello,
We have 2 entities. Entity1 and Entity2. Entity1 have 1:N relationship with Entity2. I need to filter lookup field of Entity1 on Entity2 form. So i have written fetchxml and added as prefilter on the lookup field.
I want that lookup should show only those records of Entity1 :
1) Which don't have any associated Entity2 records.
2) If any Entity2 record is associated and that record have specific value in one custom field.
I have created outer join with linked entity and used OR condition. That works fine if only one record is associated with Entity1. But let say, if 2 Entity2 records are associated with Entity1. One is with specific value in custom field and other with not. Then my requirement is, that record should not display in lookup fields. Currently it is showing.
*This post is locked for comments