Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

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 10280

Latest Images

Trending Articles



Latest Images

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