CRM2011 - Convert String

Jun 24, 2011 at 4:43 PM
Edited Jun 24, 2011 at 4:44 PM

Just tried to use the Convert function and was getting cast errors.  Got around it with the following change:


stringVal = Value.Get(executionContext);
var value = Convert.ToDouble(stringVal);
//var value = Double.Parse(Value);


The commented out line was giving the cast errors.  Replacing it with the lines above meant it worked a treat.

Hope this helps someone out.