on 2023 Jun 21 6:14 AM
Hi All,
I am trying pass filters in get operation in my SAP BTP Destination Rest API. I am passing query.condition in teh Request header. But I am getting only 2 properties in the filter value and @odata.context.Actualy I need all the properties in value as filters.
Can someone help on how to get the exact properties for filter condition.
Regards,
Anjaly
Request clarification before answering.
The first solution you could do is to connect to your OData service with the "SAP BTP destination REST API integration". You will lose the benefits of the OData integration -- recognizing entities, filtering/paging/sorting -- but you will have control over the query parameters.
You will have to set the query string each time you retrieve records, changing the entity and the path.
Here is the data resource, including the list definition and its query parameter.
Here is the data variable logic:
And here is the formula for the query:
You can set this as a page parameter and then just build the value for the page parameter. This is a workaround and I'm sure there are limitations, but you seemingly can set anything you want in the path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
daniel.wroblewski Thanks for the help.It worked for me.
@PratikShekokar11 Can you explain more what you are looking for and what trouble you are having?
P.S.: This question and answer is a little out of date since you can now use actions in SAP Build Apps, and in the action you can define whatever you want for the $filter property, including using placeholders and passing those when you call the action from with your app.
User | Count |
---|---|
76 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.