Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
In situations like this - when you try to mimic a UI behavior - it helps to fire up the ole reflector =) In your case, I'd take a look in Mediachase.ConsoleManager.dll, starting with MetaFieldEditControl.SaveButton_Click and taking it from there. Good luck, and let us know your findings!
Nevermind.
When I use MetaEnum.AddItem(metaFieldType, value, orderId) instead of adding the items to the EnumItems it works.
Hello,
As part of a scheduled job I want to create a new multi-value MetaField of type Dictionary items and to create the related dictionary items. The issue is the MetaEnumItems are not being created in the mcmd_MetaEnum and mcmd_SelectedEnumValue tables.
I am missing something because they are getting persisted somewhere but I am not sure where as I can retrieve them even after a recycle of IIS.
This is what I am using to create my enum and items:
I appreciate any help!
Note: I believe the field is being created correctly as if I manually add entries in CommerceManager then I can use them without issue. I believe the issue is in how I am creating the enum entries.