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:
- For example getting the whole collection via https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/customBORootCollection/
- Or getting single instances via https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/customBORootCollection('UUID')
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