Dear Cloud SDK team,
The following odata request to an S/4 system is executed as expected:

Why is it not possible to implement it with Cloud SDK? With Cloud SDK I can retrieve either the counter or the result set, but not both in a single query.
Best regards,
Marc
Request clarification before answering.
With the default API it's not easily possible. However we made sure you can cast any OData v2/v4 request to our Generic OData API. The response object features a method "getInlineCount()". However please notice - according to API contract - the method throws an exception if no inline count can be determined. You can let us know, if you need assistance with API usage.
Please find the following documentation page:
Generic Advanced OData Client | SAP Cloud SDK
Kind regards
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As workaround, you could also add a custom query parameter to your request
The idea, why this isn't coming out of the box - I assume it's that requesting "just the count" is more efficient, also for your loop/paging logic you're going to realize further. But I do not know, if this is real the case 😉
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.