Skip to Content

@sap/cds-odata-v2-adapter-proxy - Entity with parameters

Hi ,

I have a problem in forming the URL for v2 odata service when there is a entity(here - Project) with parameters. I tried the following

/v2/catalog/ProjectParameters(IP_VAL='12')/Results
/v2/catalog/Project(IP_VAL='12')/Results

/v2/catalog/Project(IP_VAL='12')/Set

The last one is giving the results in V4 format. Kindly suggest how to form the correct URL to get the data in V2 .


Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 13, 2020 at 03:00 PM

    Hi Manikandan,

    the correct URL is "/v2/catalog/Project(IP_VAL='12')/Set"

    Without knowing your model, it should work and return a OData v2 response.

    What is the result of the call?

    Best regards,

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.