cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP C4C getting odata service metadata in JSON format

dhruv_mehta
Active Contributor
0 Likes
2,369

Dear All,

How can we get the metadata of an oData from C4C in JSON format, Itried below way.

https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codata/?$format=json

it only gives me the fieldnames and not its properties, if I check below URL,

https://myxxxxxx.crm.ondemand.com//sap/c4c/odata/v1/c4codata/$metadata

I get all the metadata with XML format and not in JSON , even if Pass parameter format=json , I get error unsupported content-type [application/xml].

did any1 have this issue?

Accepted Solutions (1)

Accepted Solutions (1)

jravnik
Participant

Hi Dhruvin,

unfortunately there is no support for JSON formatting of the $metadata call. That is because of the CSDL format of the $metadata document, which does only support XML.

Best regards
Jürgen

dhruv_mehta
Active Contributor
0 Likes

Oh 😞 no problem! Thanks a lot for ur feedback! I will raise it in Idea hub.. Have a nice weekend.

Answers (0)