Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Unable to cast object of type 'Microsoft.Xrm.Sdk.OptionSetValue' to type 'System.IConvertible'

$
0
0

Hi 

I am trying to compare the option set value in my  class. but I am getting this error "{"Unable to cast object of type 'Microsoft.Xrm.Sdk.OptionSetValue' to type 'System.IConvertible'."}." can any one please suggest to resolve this problem.please it's very urgent.

here is my code

if(new OptionSetValue(Convert.ToInt32(sa.Attributes["isr_typeofdegree"])).Value== new OptionSetValue(Convert.ToInt32(905080000)).Value)
{

//logic

}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images