Metadata API availability

Dan Valea
Member since: 2013
 

Hi,

I'm currently working on a project that has a considerable amount of different product types (more than 200) and in order to solve this I was thinking to build MetaClasses & MetaFields dynamically using the Metadata API.

Since this is an old API I was wondering if it's a safe approach or if EPiServer might remove this API soon (next year or so).

Also, if there is another possible solution to the problem described above, please let me know. Thank you!

#176700
Mar 23, 2017 19:34
Frederik Vig
Member since: 2008
 

I would consider generating the C# classes you need instead, using Roslyn this has become quite simple and clean. You can generate them based on different data sources (JSON, XML, SQL Data etc).

Hope this helps.

Frederik

#176701
Mar 23, 2017 19:52
Dan Valea
Member since: 2013
 

I’ve already considered that but I don’t want to end up managing more than 200 classes, product detail pages and so on.

#176702
Edited, Mar 23, 2017 20:13
Quan Mai
Member since: 2011
 

Hi

No, the MetaObject/MetaField APIs will not be removed anytime soon. With such important APIs even when we obsolete them, it will take (at least) 12 months + 1 major version to remove them completely. 

#176707
Mar 23, 2017 23:19
Johan Book
Member since: 2010
 

But do you really need to handle them as distinct types? Where are you using these types you mean?

#176710
Mar 24, 2017 0:03