cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to get all properties of a specific entity by OData API?

0 Kudos

Hi Community,

We are trying to get the entity properties dynamically from the Odata REST API. But so far we can only get the properties from the metadata api, and this need to parse the XML file to get the desire data. We wonder whether there is an OData REST API could return me the properties of a specific entity?

Thanks,

Jack

Accepted Solutions (0)

Answers (1)

Answers (1)

leonardo_felini
Advisor
Advisor
0 Kudos

Hello Jack,

According to the general Odata API implementation (V2), the $metadata page does not work as a normal service of the API. Rather than that, it is implemented as a plain XML file with the information of the entities. Considering this, this page does not support filtering, and it is also not possible to perform a specific query for an entity metadata.

I found and old blog from the Odata.org site, in which the author explains a prototype of a queryable metadata. However it seems that this was not implemented in the version that the C4C is using (V2):

https://www.odata.org/blog/queryable-odata-metadata/

Kind regards,

Leonardo

Support Consultant | SAP Product Support

Community:

SAP Business ByDesign: https://www.sap.com/community/topics/business-bydesign.html

SAP Cloud for Customer: https://www.sap.com/community/topics/cloud-for-customer.html

0 Kudos

Thanks for your response, I believe that is the case, right now I also can't find any API to get the properties for a specific entity.