locked
if condition in CRM RRS feed

  • Question

  • i am biggner in crm 

    i wana know how to use not equal operetor in Asp .net while retrieving CRm records

    Monday, November 19, 2012 8:06 AM

Answers

  • hi hayat,

    using filter expression, you can do that. check this link  and also check this link.

    FilterExpression filter = new FilterExpression();
    
    filter.AddCondition("fieldName", ConditionOperator.NotEqual,"string");


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.


    • Edited by Ravitheja J Monday, November 19, 2012 8:37 AM
    • Proposed as answer by Ravitheja J Monday, November 19, 2012 8:39 AM
    • Marked as answer by mazhar hayat Wednesday, December 19, 2012 10:29 AM
    Monday, November 19, 2012 8:34 AM

All replies

  • hi hayat,

    using filter expression, you can do that. check this link  and also check this link.

    FilterExpression filter = new FilterExpression();
    
    filter.AddCondition("fieldName", ConditionOperator.NotEqual,"string");


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.


    • Edited by Ravitheja J Monday, November 19, 2012 8:37 AM
    • Proposed as answer by Ravitheja J Monday, November 19, 2012 8:39 AM
    • Marked as answer by mazhar hayat Wednesday, December 19, 2012 10:29 AM
    Monday, November 19, 2012 8:34 AM
  • If you retrieve data with the CRM Web Service,you could reference to this.
    http://msdn.microsoft.com/en-us/library/gg334688.aspx

    Change the

    condition1.Operator = ConditionOperator.Equal;

    To

    condition1.Operator = ConditionOperator.NotEqual;


    Jerry Hsu

    Monday, November 19, 2012 8:38 AM