locked
"OR" operator in SOAP call RRS feed

  • Question

  • I need to add an OR statement to hard code this lookup to always include our actid

    +

     

    "<filter><condition attribute='customerid' operator='eq' value='"

    + actid // or  customerid = GUID of my choice

    +

     

    "' />


    Withers
    Wednesday, April 7, 2010 4:53 PM

Answers

  • You may use

    "<filter type='or'>" +
      "<condition attribute='customerid' operator='eq' value='" + actid + "' />" +
      "<condition attribute='customerid' operator='eq' value='" + customerid + "' />" +
    "</filter>"

    Daniel Cai | http://danielcai.blogspot.com
    • Marked as answer by David Withers Wednesday, April 7, 2010 5:23 PM
    Wednesday, April 7, 2010 5:03 PM

All replies

  • You may use

    "<filter type='or'>" +
      "<condition attribute='customerid' operator='eq' value='" + actid + "' />" +
      "<condition attribute='customerid' operator='eq' value='" + customerid + "' />" +
    "</filter>"

    Daniel Cai | http://danielcai.blogspot.com
    • Marked as answer by David Withers Wednesday, April 7, 2010 5:23 PM
    Wednesday, April 7, 2010 5:03 PM
  • THANK YOU!!!!!!!!!!!!!!!!!!!!

    :)

     


    Withers
    Wednesday, April 7, 2010 5:24 PM