volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

Get data from MetaClass table.

Hi,

Is there an episerver api to use to get all entries, or the Name and the MetaClassId from that table in the database?

Thanks in advance.

#217033
Feb 13, 2020 10:32
Vote:

Mediachase.MetaDataPlus.Configurator.MetaClass.GetList(MetaDataContext) would give you MetaClassCollection which is the list of MetaClass, then you can get Name and MetaClassId 

You can use MetaDataContext.Instance to get the required MetaDataContext

#217034
Feb 13, 2020 10:41

Thanks Quan! This was exactly where I was looking for.

#217035
Feb 13, 2020 11:05
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.