I have a need to hide certain elements of uCommerce and create Products programatically. I therefore need to be able to set properties on the Product to match a custom enum datatype for the product. Is it possible to get hold of the DataType values through the uCommerce.API namespace or any other namespace ?
Get custom datatype Enum values through API?
I have a need to hide certain elements of uCommerce and create Products programatically. I therefore need to be able to set properties on the Product to match a custom enum datatype for the product. Is it possible to get hold of the DataType values through the uCommerce.API namespace or any other namespace ?
Thanks
Hello Russell,
You can use the EntitiesV2.DataType class to find the data type. The DataType objects have a collection of DataTypeEnums.
You can find it, for exsample, like this:
DataType.All().Where(x => x.TypeName == "MyCustomTypeName").FirstODefault();
Kind regards,
Jesper
is working on a reply...