I have an object called new_trexmail with a string attribute called new_contextline.
I am trying to get a list of objects where new_contextlineis is in a specific list.
The following code fails with an error: NotSupportedException: Invalid 'where' condition. An entity member is invoking an invalid property or method.
NotSupportedException: Invalid 'where' condition. An entity member is invoking an invalid property or method.
string[] test = new[]{"aaa", "hhh"}; var query = from n in New_trexmailSet where test.Contains(n.New_contextline) select n;
I understand why this error occurs, but I wonder if it is possible to make equialvalent for an IN clause using XRM.
If possible, how do I get XRM to execute SELECT * FROM new_trexmail WHERE new_contextline in ('aaa', 'hhh')
?
Thanks,
David
dlarkin77
source share