cancel
Showing results for 
Search instead for 
Did you mean: 

how to use sdk to call odata api

stevendai
Explorer
0 Kudos

Hi guys.

I'm facing some issues when i call odata api with cloud sdk

First for the url "https://my12345.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection"

it is working well when i access it through my browser, but when i use sdk to call it , i get an error .

please kindly help with this. Thanks in advance

charlesdubois
Associate
Associate
0 Kudos

Can you print out the full request URL: service.toRequest().getRequestQuery(); to help us debug.

Also note that our pregenerated VDM is only compatible with S/4HANA. You need to generate the VDM yourself for C4C.

stevendai
Explorer
0 Kudos

sorry, i do not find toRequest() method in ServiceRequestService, am i missing something?

mkuhr-test
Advisor
Advisor
0 Kudos

the .toRequest() should be available before .executeRequest()

Accepted Solutions (0)

Answers (0)