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

How to sum the currency fields in ms crm 2011

$
0
0

Hi,

I am trying to sum the 2 currency fields and post the result to total currency field in ms crm 2011 plugin but getting following cast exception error while executing the following line.

projafp["bap_estimatedrevenue"] = (((Money)(projAFPRecord[0]["bap_estimatedrevenue"]))).Value + ((afpPostImage.Attributes.Contains("bap_estimatedrevenue") ? ((Money)(afpPostImage["bap_estimatedrevenue"])) : new Money(0))).Value

service.Update(projafp);

Error:-
System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E5F8C802

Please help how to resolve this issue. Its very urgent.

Thanks


Yadav


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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