Skip to Content

Taking array of inputs in odata

Oct 20, 2017 at 08:55 AM


avatar image

Hi ,

My Odata service needs to take from date and to date along with list of sales order numbers as input and then process the data.

How can i achieve this?

How would my URI be?



10 |10000 characters needed characters left characters exceeded

My input json structure will be,


"fromdate": "2017-10-17T00:00:00",

"todate": "2017-10-20T00:00:00",

"custno": [

{ "0001","0002","003"}


* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ankit Maskara
Nov 02, 2017 at 06:09 PM

Multiple ways,

1. Take dates as separate filters and sales order list as separate filter with format of a delimited list of string and parse the same in backend.

2. Take a serailzed JSON in a filter property and then deserialize the same in backend. Catch for dates is you should take dates here as string and not in timestamp format else standard name based transformation won't work and you will need to write transformation logic as well.

10 |10000 characters needed characters left characters exceeded