Last post Nov 08, 2019 06:11 AM by Yang Shen
Nov 08, 2019 04:26 AM|robby32|LINK
if i ave a string lets say :
I do a split on this and get values 100000000, 100000001, 100000002. How can i get the string value from a OptionSetValueCollection in crm ?
So , 100000000 might be swimming
Nov 08, 2019 06:11 AM|Yang Shen|LINK
How can i get the string value from a OptionSetValueCollection in crm ?
What do you have in this OptionSetValueCollection? Three int numbers you mentioned above?
And this might out of this forum's serve range since you said it's in
However, in c# program we can get string value from a OptionSetValueCollection very easy, you can refer to How
to Get Formatted values in c# code from MultiselectOptionSet and below demo:
OptionSetValueCollection a = new OptionSetValueCollection();
foreach (var i in a)
var t = a.Where(x => x.Value == i.Value).FirstOrDefault().Value.ToString();
Console.Write(t + Environment.NewLine);