cancel
Showing results for 
Search instead for 
Did you mean: 

clientAPI.sendRequest(): the incoming path is not mapped to Destination.

FranciscoSAP
Advisor
Advisor
0 Kudos

Hi experts,

I am currently trying to send a custom request over to my backend service by using clientAPI's sendRequest method. Unfortunately, the relative path I'm using returns the following error both in my VSC console and in my Mobile Services logs:

I have tried declaring the relative path to the service in my destination in the following fields:

Is there anything I'm missing to correctly map the relative path to my registered Destination? The reason I'm trying to send this request manually is because we are trying to handle the master data for our app and I need to capture and persist the delta token generated for each request in my MDK app, which should be included in the header of each response.

Accepted Solutions (1)

Accepted Solutions (1)

mingkho
Advisor
Advisor
0 Kudos

ClientAPI.sendRequest path is relative to your Mobile Services Server URL.

You will need to specify the destination too.

e.g. if you have a destination called "MyDestination" mapped to your Mobile Services app config, then your path should be

"/MyDestination/sap/opu/data/sap/ZPM_ODATA_SRV/MasterData01Set" (If your destination root is not the OData service and you need to append relative path to it)

or

"/MyDestination/MasterData01Set" (if your destination root is already the OData service)

Answers (0)