SAP Knowledge Base Article - Public

2668887 - How to retrieve metadata of one entity using OData API

Symptom

You want to retrieve the OData API Metadata but only for one specific entity.

So this KBA explains how you can fetch the metadata of a specific entity instead of fetching the entire instance's metadata.

Environment

Successfactors

Resolution

Now in order to fetch the entire metadata of an instance, we use below API call-
https://<hostname>/odata/v2/$metadata

However if we wish to fetch the metadata of some specific entity, we can form the query as follows.
https://<hostname>/odata/v2/User,Photo/$metadata

Above query would give us the metadata of only User and Photo entity.

See Also

You can refer the KBA #https://launchpad.support.sap.com/#/notes/2215682 for hostname of your instance.

Keywords

Odata API, Metadata, entity , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , How To

Product

SAP SuccessFactors HCM Core all versions