Hi,
Was getting Generic SQL Error while using ConditionOperator.Contains in the ConditionExpression. The requirement was to get all the incident records based on the title attribute value.
condExp.AttributeName = “title”;
condExp.Operator = ConditionOperator.Contains;
condExp.Values.Add(“test”);
The correct way to perform this kind of search is by using Like operator with %.
condExp.AttributeName = “title”;
condExp.Operator = ConditionOperator.Contains;
condExp.Values.Add(“%test%”);
Hope it helps.
Filed under: CRM, CRM 2011, CRM 2013, Microsoft Dynamics CRM Tagged: CRM, CRM 2011, CRM 2013, CRM 4.0
*This post is locked for comments