locked
"Unknown Condition Operator: DoesNotContain"-"DoesNotContain" support or not with Dynamics Online? RRS feed

  • Question

  • Hi Experts:

    We encounter an error "Unknown Condition Operator: DoesNotContain".

    We want to it support with Dynamics Online or not?

    Thanks,


    Mandy

    Monday, July 14, 2014 7:57 AM

All replies

  • Hi Mandy,

    I have faced this issue as well, when you're using the Does Not Contain in Query Expression. Not sure if this is a bug and Microsoft is aware of it or not.

    Workaround us to use the "NotLike" Operator with % as prefix and suffix of your data. Something like:

    value = "%" + value + "%";
    
    ConditionExpression condition1 = new ConditionExpression();
    condition1.AttributeName = columnName;
    condition1.Operator = ConditionOperator.NotLike;
    condition1.Values.Add(value);


    Admin QuikView Solution for CRM 2013


    Monday, July 14, 2014 11:47 AM
  •  Thanks for your reply.

    Yes, but as I asked another question several days ago "Unknown Condition Operator: NotOn". 

    We encounter when used operator like NotOn, Contains, DoesNotContain.

    But did not get some useful response from MS.

    So if you still have the same issue with me for the above three operator, please reply me.



    Mandy

    Tuesday, July 15, 2014 8:19 AM
  • Hi Mandy,

    I can confirm for Contains and DoesNotContain, and I have had a workaround using Like and NotLike respectively and appending "%" in the beginning and end. I haven't checked for NotOn, but I believe they are related. For some reason these doesn't work using Query Expression.

    You can try using NotEquals in place of NotOn and see if that might act as a workaround.


    Admin QuikView Solution for CRM 2013


    Tuesday, July 15, 2014 8:34 AM