2024 Oct 28 8:25 AM - edited 2024 Oct 28 8:25 AM
Hello Everyone,
Could anyone please guide me on how to add a filter to an expanded attribute?
Here is an example for your reference: The following URL expands the items (Sales Order Item) and aligns them with the Sales Order:
URL: https://xxx/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder()?$expand=to_Item
However, when I try to add a filter inside the expand operator, it doesn't seem to work:
Any insights or suggestions would be greatly appreciated.
Regards,
Rahul Jain
Request clarification before answering.
The API in question uses OData V2, and OData V2 does not allow filtering expanded items.
Please check whether there is a newer OData V4 API and switch to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
13 | |
11 | |
5 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.