I'm using crm 2016 and I want to know if there is a way to get a text value from an Optionset or must I create an ENUM and according to my INT value retrieve my text value from my OptionSet.
I searched in this forum and found this option :
OptionSetValue opProductType = new OptionSetValue();
opProductType = (OptionSetValue)pCall.xnes_test2;
var optionValue = opProductType.Value;
I get the value 2 but in my field the value 2 = test2.
Is there a way ? or should I fall to a world of enums
thanks
*This post is locked for comments