Skip to Content
0

oData service takes array as an input

Apr 06, 2017 at 11:05 AM

28

avatar image

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'..so on) and (InvoiceNumber eq 'ABC','DEF'..so on).

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

looking forward to your replies !

Thanks,

Juhi

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

0 Answers