Retrieve Ontology Metadata from OSDK

We have code that uses the OSDK that is generic in the ontology type it can use. I would like to use some data relating to that type, e.g. display name and plural display name. I see that there is a __DefinitionMetadata property on object types, but it seems to always be undefined. Is there any way using the OSDK to inspect this kind of metadata on ontology object types?

well… there is the Foundry API where you can get a lot (unfortunately not all) of the object type metadata. the token from the osdk works also on the API.

Ah yes, that’s a good idea. It kind of defeats the purpose of the OSDK, but would get us there. Thanks!

Hi @erik – Yes, I’d recommend using the Platform API for this purpose. For your needs, Get Object Type seems to fit the bill. I hope this helps.