Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

How do you get optionset value in CRM using plugin?

$
0
0

I am trying to get optionset value of a picklist with the code below to execute some functions. It's not working, can anyone tell me correct syntax and library to use:

OptionSetValue stateType = (OptionSetValue)entity.Attributes["new_status"];

if (stateType.value == 2)
{

//Execute code

}


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>