I'm writing this code in C# using Dynamics AIF.
How do I perform a partial string query on Dynamics QueryService?
The Dynamics query would be like this:
WHERE %1.Field LIKE '*partialstring*'
This is what I'm doing:
QueryDataRangeMetadata range = new QueryDataRangeMetadata();
range.FieldName = field;
range.TableName = tableName;
range.Enabled = true;
range.Value = string.Format(" LIKE '*{0}*'", id);
query.DataSources[0].Ranges[0] = range;
I thought about this solution because this one works:
range.Value = ">2000";
But not the one using like... Is there any way to solve this? Any workaround?
According to Joris, in this post http://daxmusings.codecrib.com/2013/09/linq-to-ax-example-using-wpf.html you can't perform partial queries on strings using dynamics Linq, I'm having the same problem with the QueryService.