Consider that api response without any filters as below,
[
{
"Account": {
"AccountID": "1",
"Name": "Acc1"
}
},
{
"Account": {
"AccountID": "2",
"Name": "Acc2"
}
},
{
"Account": {
"AccountID": "3",
"Name": "Acc3"
}
},
{
"Account": {
"AccountID": "4",
"Name": "Acc4"
}
}
...
...
]
Im using odata query to filter accounts as below, when I have array of account ids.
.......apiurl?$filter=Account/AccountID eq '1' OR Account/AccountID eq '2' OR Account/AccountID eq '3'
This seems working. But when the account ids array has more values then the uqi query length gets increase.
Is there any other option to use the field only once Account/AccountID in uri to check against array of Ids.
Thanks in advance.