Dynamics CRM SDK - IN operator for linq with OrganizationServiceContext
07:40 11 Mar 2014

I'm using my OrganizationServiceContext implementation generated by the svcutil to retrieve entities from CRM:

context.new_productSet.First(p => p.new_name == "Product 1");

Is it possible to retrieve multiple entities with different attribute values at once - (smth like IN operator in SQL)?

Example: I would like to retrieve multiple products ("Product 1", "Product 2", ...) with a single call. The list of product names is dynamic, stored in an array called productNames.

dynamics-crm-2011 dynamics-crm