cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can we use OData 2.0 custom query options with 'srv.send' with CQN?

shatsijev
Explorer
2,378

Hi,

For our current project we are working with CAP as it's showcased by SAP; using cds external service based on the OData V2 service definition.

We are trying to retrieve data from SuccessFactors API using CQN however for one of the request we need to add a query parameter to reproduce the following API call :

GET https://apiXXX.successfactors.eu/odata/v2/User
?$select=[REQUIRED_FIELDS]
&$expand=[RELATED_ENTITIES]
&$filter=[SOME_FILTERS]
&fromDate=1900-01-01

`fromDate` is not a User entity's property or any other related entities one but it is required to get the needed data.

We looked in the documentation and we couldn't find any solution.

Accepted Solutions (0)

Answers (1)

Answers (1)

Oleks34
Explorer

We also have problems with the query parameters available in Successfactors: For example, there are two parameters are widely used in SSF:

  • asOfDate
  • toDate

which allows timetraveling. In our setup we are not able to pass these parameters to the SSF backend from UI5 frontend: UI5(OData V4) -> CAP (NodeJS) -> SSF(OData V2).

For now we have to implement a custom handler for each and every entity to add manually these params to the query: CAP -> SSF.

MMonis
Participant
0 Likes
Are there any updates to this from the CAP side to support custom SF parameters ?