bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
124 stars 42 forks source link

Multiple filters in .Filter method #20

Closed nickitatkach closed 1 year ago

nickitatkach commented 1 year ago

Hello,

I would like to know how add multiple filter in a single request such as startswith and eq. For instance, .Filter("Disabled eq 'N'", "startswith(CardName, 'C')").

Thank you.

bgmulinari commented 1 year ago

Hello, @nickitatkach.

You can do this by using the Service Layer's standard logical and relational operators. Check the Service Layer User Manual for more details on this.

In your example, it should be like this: .Filter("Disabled eq 'N' and startswith(CardName, 'C')")

nickitatkach commented 1 year ago

Hello @bgmulinari,

Thank you very much, it works!