Vulnerability in EPiServer.Forms
Currently, i try to manage customers group. but when i try to set a customer group to a contact. it only save a number on table cls_Contact
I just try to create new customers group and try to assign it to a contact but when i did that the value in contact table is just a number
Could anyone please help me to point out where this number comming from?
Thank in advance,
It seems like these comes from a Dictionary that you can manage from within commerce manager:
Sounds like those values are MetaEnum values https://world.optimizely.com/documentation/developer-guides/commerce/customers/Customer-groups/
So programtically you can use https://world.optimizely.com/documentation/developer-guides/commerce/business-foundation/business-meta-model/MetaEnum-class/ and create, update or list the values for the customer group.
I did not notice that question was related to Commerce 14 - 🤦♀️ So you can disregard my screenshot from CM
Scott's links should explain how to work with those values programmatically.
If you just want to see/update the ones that are defined via the UI, you can get to them by clicking the three dots next to the customer group selector on the Create (or Edit) Contact screen, to get to the Manage Customer Groups screen: