Just noticed that when you use Filter Criteria in a custom entity view and that criteria includes the use of <field> EQ <value, value, value, ...> on a Lookup field, the resulting FetchXML query uses the IN operator.
Sounds reasonable except for the fact that the IN operator includes GUIDs which match those values. That makes it a bit hard for the query to work when the Solution is imported onto another deployment (i.e. those GUIDs don't obviously match anymore).
The workaround I used was to use the "Begins With" operator, which works in my current cases. That query is formed differently and works as expected.
The CRM query editor really shouldn't be using the IN operator for customized Solutions since this will never work and the GUID parameters don't appear to be optional.
*This post is locked for comments
I have the same question (0)