Skip to Content

oData service takes array as an input

Apr 06, 2017 at 11:05 AM


avatar image
Former Member

Hi Community,

I have an oData service (GET operation) which has a filter something like this

$filter=(VendorCode eq '123' or VendorCode eq '456') and (InvoiceNumber eq 'ABC' or InvoiceNumber eq 'DEF').

As per the business requirement there is a need to reduce the URL size and hence looking to transform this filter to something like this

$filter=(VendorCode eq '123','456' on) and (InvoiceNumber eq 'ABC','DEF' on).

This will highly reduce the URL length hence allowing more input in rare cases, making application more robust.

looking forward to your replies !



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers