cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP external ODATA which does not support skip

T1mey
Participant
0 Kudos
182

Hello,

I have an external ODATA service (MS Graph user API) which I want to use for a user search in a CAP application (based on a value help dialog).

T1mey_0-1718786273585.png

So this works in general and I'm able to retrieve the initial set of data. But if the search returns more data the table tries to load the additional records with a $skip call the the MS Graph API. The api does not support these call and returns an exception.

Error during request to remote service: '$skip' is not supported by the service.

So I added the annotation:

@Capabilities.SkipSupported: false
entity users as projection on app.users;

But this setting has no influence on the value help. So the call is send with the $skip parameter...

Anybody an idea ?

 
View Entire Topic
junwu
Active Contributor
0 Kudos

did you try removing the skip by implementing a "before" handler?

T1mey
Participant
0 Kudos
I tried it in the on handler... but it did not work out, as I do not know what values to reset.