Try our conversational search powered by Generative AI!

Get all the values for PropertyDictionaryMultiple



I have a property like:


public virtual ItemCollection Prop1 { get; set; }

And I need to extract all the posible values for it.  Is there any api to call to get such data?

Apr 11, 2018 15:16

Yes there is. However you have to know the MetaField mapped to that property. Then you can do it like this:

var metaField = MetaField.Load(CatalogContext.MetaDataContext, metaFieldId).Dictionary.OfType<MetaDictionaryItem>();

Edited, Apr 11, 2018 15:52

Maybe I use wrong libraries, but it says that:


is not supported.

using Mediachase.Commerce.Catalog;
using Mediachase.MetaDataPlus.Configurator;
Edited, Apr 11, 2018 17:34

My bad, missed ".Dictionary" part. 

Apr 11, 2018 17:38
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.