Always seem to struggle with some of these types of queries...
We have 3 BOs... Customer, Agency, Store
A Customer can be related to many Agency .... So, Customer has a Peer Many reference to Agency
A Store can be related to many Agency .... So, Store has a Peer Many reference to Agency
I know the Customer and I want a Query to display all of the Stores that are in an Agency that is related to that Customer.
I expected one of these to work... but no cigar...
FIND Store WHERE COUNT Agency WHERE ( Agency IN Customer.pm_Agency AND Agency IN Store.pm_Agency)>0
also tried...
FIND Store WHERE COUNT Agency WHERE ( Agency IN Customer.pm_Agency AND Agency IN ThisStore.pm_Agency)>0
also tried...
FIND Store WHERE COUNT Agency WHERE ( Agency IN Customer.pm_Agency AND Agency IN ThatStore.pm_Agency)>0
Any ideas or suggestions would be appreciated.