<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx</link><description>This is a question I get about once a week and got tired of typing up the same email over and over again. J Doing Math in Microsoft CRM using Jscript is mind numbingly easy. If you can do an Excel (Or VisiCalc ) math equation, then you can do one in Microsoft</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#695242</link><pubDate>Fri, 11 Aug 2006 12:11:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:695242</guid><dc:creator>Zulu</dc:creator><description>what would the Jscript look like if you want to Calculated more than one Field ?</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#695387</link><pubDate>Fri, 11 Aug 2006 14:46:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:695387</guid><dc:creator>Ben Vollmer</dc:creator><description>Give me an example... </description></item><item><title>http://ronaldlemmen.blogspot.com/2006/08/save-disabled-fields.html</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#696473</link><pubDate>Sat, 12 Aug 2006 14:27:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:696473</guid><dc:creator>TrackBack</dc:creator><description /></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#839069</link><pubDate>Wed, 18 Oct 2006 17:33:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:839069</guid><dc:creator>Ivan</dc:creator><description>&lt;p&gt;Cool, thanks man, that was an eye opener for someone that had no ideia of how to do it.&lt;/p&gt;
</description></item><item><title>Follow-up from Convergence 2007 Session</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#1895153</link><pubDate>Fri, 16 Mar 2007 19:12:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1895153</guid><dc:creator>East Region Microsoft CRM</dc:creator><description>&lt;p&gt;My apologies in not getting this up sooner. I flew home on the red-eye on Wednesday night, drove from&lt;/p&gt;</description></item><item><title>Follow-up from Convergence 2007 Session</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#1895434</link><pubDate>Fri, 16 Mar 2007 20:22:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1895434</guid><dc:creator>East Region Microsoft CRM</dc:creator><description>&lt;p&gt;My apologies in not getting this up sooner. I flew home on the red-eye on Wednesday night, drove from&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#2099984</link><pubDate>Thu, 12 Apr 2007 17:36:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2099984</guid><dc:creator>David </dc:creator><description>&lt;p&gt;Hey i am curious about a calculated field like the estimated opportunity revenue. where the field is calculated by x - sum(child:x). is there an easy way to do that on the form?&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#2103863</link><pubDate>Thu, 12 Apr 2007 23:59:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2103863</guid><dc:creator>Ben Vollmer</dc:creator><description>&lt;p&gt;Easy answer? No. :-) With some work, yes... But easily... No...&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#3117303</link><pubDate>Wed, 06 Jun 2007 17:01:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3117303</guid><dc:creator>Maina</dc:creator><description>&lt;p&gt;How do i set up a similar calculated totals in a structure similar to contracts and their contract lines? When you add a figure in contract lines the total figure in the contract gets updated&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#3216565</link><pubDate>Mon, 11 Jun 2007 03:55:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3216565</guid><dc:creator>Ben Vollmer</dc:creator><description>&lt;p&gt;Maina,&lt;/p&gt;
&lt;p&gt;That would require a little custom work... You should do a post call out with an application calling CRM's web service to make the update. :-)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#4205176</link><pubDate>Fri, 03 Aug 2007 13:18:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4205176</guid><dc:creator>Panez</dc:creator><description>&lt;p&gt;Hi to all! I'm going mad, &lt;/p&gt;
&lt;p&gt;my math customization problem is this: &lt;/p&gt;
&lt;p&gt;When you go to &lt;/p&gt;
&lt;p&gt;Sales -&amp;gt; Offers and than open an existing Offer the toolbar have a button Recalculate.&lt;/p&gt;
&lt;p&gt;This calcolous find actual(at the moment of the launch) prices of all products and sum for a new total (if the prices are changed from the previous launch), this is very interesting because manage the list of products associated to the offer, I need this too.&lt;/p&gt;
&lt;p&gt;Well, I have to do a simple thing (but I'm walking on the darkness!) I've added a picklist (simple!) with some voice of type &amp;quot;add 10% to the total amount of offer&amp;quot; or &amp;quot;apply Christmas discount to tech products&amp;quot; ecc &lt;/p&gt;
&lt;p&gt;I've added a new button &amp;quot;MyRecalc&amp;quot; to the toolbar (simple!)&lt;/p&gt;
&lt;p&gt;BUT I'don't have idea to how apply my personal calcolous related to the picklist choice.&lt;/p&gt;
&lt;p&gt;Wich is the way to do that? There's examples, exist somewhere the source code of the original &amp;quot;Recalculate&amp;quot; method?&lt;/p&gt;
&lt;p&gt;Heeeeeelp :)&lt;/p&gt;
&lt;p&gt;Panez&lt;/p&gt;
&lt;p&gt;PS if the solution exist I hope it's doesn't use Webservices, I build a custom web service that work if called in a web application inside an Iframe but when I call web service methods inside javascript I've got empty response (I don't know if the web service really respond to my call).&lt;/p&gt;
&lt;p&gt;PPS Sorry for my English &lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#4480576</link><pubDate>Mon, 20 Aug 2007 18:10:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4480576</guid><dc:creator>Mike Menser</dc:creator><description>&lt;p&gt;Is it possible to do dependant math? i.e.: form1 + form2 only if form3 = x&lt;/p&gt;
&lt;p&gt;The usage I am looking for is a total of grant funds. Funds from form1, plus funds from form2 but only if the funds in form2 are eligible as specified in a yes or no menu on form3.&lt;/p&gt;
&lt;p&gt;Thanks in advance for the help!&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#4480585</link><pubDate>Mon, 20 Aug 2007 18:11:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4480585</guid><dc:creator>Mike Menser</dc:creator><description>&lt;p&gt;I apologize. I think that my usage gives the wrong impression. This is all on the same form, but in 3 different fields.&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#4481922</link><pubDate>Mon, 20 Aug 2007 19:16:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4481922</guid><dc:creator>mmenser</dc:creator><description>&lt;p&gt;I keep getting an error... I do not get the output from the equation in my ending field, and when I try to enter text into the field I get &amp;quot;This control only accepts strings as null or input&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#4484022</link><pubDate>Mon, 20 Aug 2007 22:27:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4484022</guid><dc:creator>Ben Vollmer</dc:creator><description>&lt;p&gt;Could you share your formula?&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#5000949</link><pubDate>Wed, 19 Sep 2007 22:55:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5000949</guid><dc:creator>mmenser</dc:creator><description>&lt;p&gt;Thanks for all the wonderful tips Ben.. you are my CRM hero! I did get the last thing figured out and the code works now. I still never figured out doing dependent math, as stated in my first post. I do have a NEW question... I was wondering if you can do math with date fields. Here is the usage:&lt;/p&gt;
&lt;p&gt;Say there is a field that says &amp;quot;Date Letter Was Mailed&amp;quot;, and then there is a second field for &amp;quot;Followup Date&amp;quot;. Well, my follow up date should be 30 days after the letter was sent. So if I fill in the &amp;quot;Date Letter Was Mailed&amp;quot; field, I would like the Followup Date to populate automatically with the date that would be 30 days from the date the letter was sent. Any ideas??&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#5105578</link><pubDate>Mon, 24 Sep 2007 22:56:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5105578</guid><dc:creator>Ben Vollmer</dc:creator><description>&lt;p&gt;M-&lt;/p&gt;
&lt;p&gt;Lookup in the JavaScript Bible doing math on Date Fields. It takes a little more work, but is pretty easy. I don't have it in front of me, but it works VERY well. :-)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#5255190</link><pubDate>Wed, 03 Oct 2007 09:01:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5255190</guid><dc:creator>Dave Secker</dc:creator><description>&lt;p&gt;Ben-&lt;/p&gt;
&lt;p&gt;Thanks so much for the info - it's much appreciated. &amp;nbsp;Would you happen to know why I might be getting 'object exptected' errors whenever I update either factor variable? &amp;nbsp;I've tried your method and the fireonchange() function and I end up with the same error. &amp;nbsp;If I manually change the sum field it then calls the onchange function and works properly...&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#8180535</link><pubDate>Thu, 13 Mar 2008 16:34:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8180535</guid><dc:creator>Stacy</dc:creator><description>&lt;p&gt;I used an addition function on quotes, orders, and invoices that worked in 3.0 but after the upgrade, something is working quite right.&lt;/p&gt;
&lt;p&gt;I cannot convert an order to an invoice whenever I have data in my fields that are calculated. &amp;nbsp;I can convert a quote to an order but my total doesn't show on the order after the conversion.&lt;/p&gt;
&lt;p&gt;I keep wondering what changed?&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#8357044</link><pubDate>Fri, 04 Apr 2008 17:30:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8357044</guid><dc:creator>Maria</dc:creator><description>&lt;p&gt;I keep getting a &amp;quot;object is null&amp;quot; error... I followed your steps exacly. Could someone help me figure this out? &amp;nbsp;All I am trying to do is add two money fields...&lt;/p&gt;
</description></item><item><title>re: Doing Math in Microsoft CRM aka Calculated Fields</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#8447592</link><pubDate>Thu, 01 May 2008 23:31:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447592</guid><dc:creator>Travis Engler</dc:creator><description>&lt;p&gt;I have a custom entity that I created with a &amp;quot;Amount Received&amp;quot; field. &amp;nbsp;This Entity have a N:1 relationship with an account. &amp;nbsp;I am trying to get help on the web service code it would require to have a total field on the account that will look at &amp;amp; sum all the related &amp;quot;Amount Received&amp;quot; fields for the child entity. &amp;nbsp;Could you give me some direction? &lt;/p&gt;
</description></item><item><title>CRM Live: custom calculation on Quote Details</title><link>http://blogs.msdn.com/midatlanticcrm/archive/2006/08/10/Calculated-Fields-in-Microsoft-CRM-using-Javascript.aspx#8528502</link><pubDate>Wed, 21 May 2008 18:51:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8528502</guid><dc:creator>Kona Sirohi</dc:creator><description>&lt;p&gt;In CRM Live (which doesn't support plugin and custom workflow actions), how do we calculate a custom sub-total of Quote Products based on the category / Subject of the product. For example, if a Quote has multiple Quote Product, each Quote Product can be categorized by the subject of the Product (like Materrial + Labour), how do we calculate the sub-total of all the materials and sub-total of all the Labour? &lt;/p&gt;
&lt;p&gt;I added 2 new attributes to Quote entity for holding the sub-total and I can to an extent achieve the goal by using 2 different workflows on the Quote Product entity (one each for record created and record deleted triggers), how ever I cam not able to do the calculations if someone updates an existing Quote Product record's price or quantity. this would have been easy with plugins, but CRM Live doesn't support plug-ins.&lt;/p&gt;
&lt;p&gt;Any input on this is truely appreciated. Thanks&lt;/p&gt;
</description></item></channel></rss>