Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

1502: OData for Custom BOs

$
0
0

Hi experts,

 

with 1502 we now have the possibility of using OData on Custom BOs.

 

Under "ADMINISTRATION", we can now find the "ODATA SERVICE EXPLORER" WC-View. (pre-req. you have added the WC-View to your user)

 

Via Show "Custom OData Services" we can now create custom OData Services. After the creation and activation of the service you can get the metadata info via the following link:

 

https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/$metadata

 

Getting data works fine for me:

 

 

 

Problem with Update / Delete / Create:

I am now struggling with Update / Delete / Create. With the chrome plugin POSTMAN I am always receiving "CSRF-Tokenvalidation failed". Is someone aware, how I would need to set up the configuration to get Update / Delete / Create running or is this maybe not supported? I did not find much information in the Admin-Guide and SDK-Guide around that topic.

 

Example for DELETE failing:

https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/customBORootCollection('UUID') - sent with http-"DELETE" leads to "CSRF-Tokenvalidation failed"

 

And a general question:

For which cases would you prefer using OData instead of SOAP-WebServices?

 

Thanks for your input

 

Best regards

Tom


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>