
Hi all ,
i had to get value of currency field ..i was trying as below.i couldn't get the result..
var slapenalty = agreement.Attributes["f1c_slapenalty"];//getting the value of slapenalty.
help me out for this
*This post is locked for comments
I have the same question (0)Hi Mohammed,
You need to cast it to Money type
if(agreement.Contains("f1c_slapenalty")
{
var slapenalty = ((Money)agreement.Attributes["f1c_slapenalty"]);
var moneyVal = slapenalty.Value;
}
This would return you decimal.
social.microsoft.com/.../crm-2011-how-to-use-crm-currency-field-in-plugins
Hope this helps.
Thanks