Hey guys, i m trying to get data from field with one criteria.
For example:
QueryExpression query = new QueryExpression { EntityName = "Account", ColumnSet = new ColumnSet("accounttype") };
query.Criteria.AddCondition("location", ConditionOperator.Equal, "India");
The field of location is optionset. I tried to run this code, but its keep giving me error message. When i tried to change the condition to a field with single line of text type. Its work !!
im wondering that my code can't get value from field except single line of text, multiple text and number.
So my question is, how can i add criteria from a optionset type of field and lookup type of field
*This post is locked for comments
I have the same question (0)