Hi Everyone
I am trying to get the Metadata from D365 FnO in JSON format using the Odata protocol but problem is, it giving an error. Self referencing loop detected for property 'Container' with type 'Microsoft.OData.Edm.Library.EdmEntityContainer'. Path 'EntityContainer.Elements[0]'. - This is the error message I get when trying to use this URL : InstanceURL/data/$metadata?$format=application/json.
I read on OData documentation that application/json and json are both recognized as valid argument for format query and format query has precedence over request Headers.
If I try to get metadata of a single Entity using the URLs that Odata sends in data response, something like : "@odata.context" :"InstanceURL/data/$metadata#[EntityName]". Entity name is not honored in such a case.
so my question is : 1. Is there a way to get JSON format metadata from D365 FnO since XML format is way to big in size and takes a lot of time.
2. Is there a different syntax for getting metadata of a single entity.
Let me know if any other information is needed.
All is appreciated.
Thanks!