When querying Dynamics 365 via the Web API there are several operators to choose from to filter the queried data. One of those operators is `contains` which actually appears twice.

One is the OData `contains` function (you'll find it under the heading 'Standard query functions'):

<https://msdn.microsoft.com/en-us/library/gg334767.aspx#Filter%20results>

Example:

`$filter=contains(name,'(sample)')`

The other one is an implementation of the Dynamics 365 Web API itself:

<https://msdn.microsoft.com/en-us/library/mt608053.aspx>

I tried with this one, but only got a Generic SQL error:

`$filter=Microsoft.Dynamics.CRM.Contains(PropertyName='name',PropertyValue='(sample)')`

What's the difference? And maybe someone can even tell me how to call the Web API version of `contains` correctly?