DX NetOps

 View Only

 How to say "not contains" in OData?

Bruno Sousa's profile image
Bruno Sousa posted Apr 09, 2021 10:00 AM
Hello,

How can I query for a "not contains" expression using OData?

For example "Name" not contains "StringXYZ"?

Thank you.
BR
Bruno Sousa
Jeffrey Pinard's profile image
Broadcom Employee Jeffrey Pinard
Appears odataquery doesn't show option for "does not contain", but if you do a contains, then take the URL, and change the comparison to false, it will be not contains.

Contains:      (contains(field,'value') eq true)
Not Contains:  (contains(field,'value') eq false)