<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/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>How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/3040/how-to-create-calculated-field-by-using-a-field-from-another-module</link><description>Hello, I am trying to implement a calculated field in the Meetings module which has the sole purpose to show a &amp;#39;Score&amp;#39; i.e. 1,2,3,4 etc... The calculation behind this field derives from the number of employees for an organisation in our Accounts module</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11184?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 08:37:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:63592d73-3985-4358-a0e1-46556aefea4c</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/rifa"&gt;Chris&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;From the list of options you have given, I would say it is a mix of alphabet and numeric. Attached is a screenshot of the dropdown list in the dropdown editor.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;L1 = lowest quality&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;L5 = highest quality&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="/cfs-file/__key/CommunityServer-Components-MultipleUploadFileManager/817dd498_2D00_b35a_2D00_4d06_2D00_b715_2D00_6a644e50a426-3525-complete/_5F00_Screenshot_2B00_2020_2D00_03_2D00_02_2B00_at_2B00_08.35.23.png"&gt;&lt;img alt=" " src="/cfs-file/__key/CommunityServer-Components-MultipleUploadFileManager/817dd498_2D00_b35a_2D00_4d06_2D00_b715_2D00_6a644e50a426-3525-complete/_5F00_Screenshot_2B00_2020_2D00_03_2D00_02_2B00_at_2B00_08.35.23.png" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope this helps clear it up! let me know if you need anything else from my side. Appreciate the help &lt;a href="https://sugarclub.sugarcrm.com/members/rifa"&gt;Chris&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Punit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11183?ContentTypeID=1</link><pubDate>Sat, 29 Feb 2020 14:09:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1e591931-18c9-42e0-a114-70ba5c0cf204</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/pdesai101"&gt;Punit&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;One more inquiry&amp;nbsp;before drafting a solution is regarding the contact quality dropdown field. How are the key/value pairs designed in the dropdown list? Is it one of the following or something else?&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Key is numeric, display value is numeric (e.g. 1 =&amp;gt; 1, 5 =&amp;gt; 5, 10 =&amp;gt; 10) - Higher key value&amp;nbsp;correlates higher quality.&lt;/li&gt;&lt;li&gt;Key is numeric, display value is alphabetic (e.g. 1 =&amp;gt; Low, 5 =&amp;gt; Medium, 10 =&amp;gt; High) -&amp;nbsp;Higher key value correlates higher quality.&lt;/li&gt;&lt;li&gt;Key is alphabetic, display value is alphabetic (e.g. Low =&amp;gt; Low, Medium =&amp;gt; Medium, High =&amp;gt; High) - Definition correlates higher quality&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11182?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 12:50:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fff2e931-3daa-4d12-80a9-4d572a349b9b</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;Then we would take the contact with the highest quality value. i.e. if A &amp;amp; B were contacts that were invited to the meeting, and B had a lower contact quality status than A, then take the value of A&amp;nbsp;&lt;a href="https://sugarclub.sugarcrm.com/members/rifa"&gt;Chris Raffle&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11181?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 18:59:36 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:75d0fc07-da35-424a-b419-25bc8fad0742</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/pdesai101"&gt;Punit&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;Thank you for clarifying. What is the expected behavior if&amp;nbsp;2 or more contacts with different &amp;#39;contact quality&amp;#39; values are invited to a meeting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11180?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 15:28:23 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0f100193-1a53-4b36-a9e7-1ddd26f0822e</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;1 and 2 are correct but 3 is not. In our particular case, we can have more than 1 invitee per call. &lt;a href="https://sugarclub.sugarcrm.com/members/rifa"&gt;Chris Raffle&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11179?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 15:09:41 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8ae42723-232f-4638-b30a-744880008321</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/pdesai101"&gt;Punit&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;My assumptions on your use case are the following:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The account is related via the flex relate field on the meeting&lt;/li&gt;&lt;li&gt;The contact is associated as an invitee and not via a custom relationship&lt;/li&gt;&lt;li&gt;You do not intend for more than 1 contact to be associated with a meeting&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Are those accurate?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11178?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 14:10:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fccf3d96-14e1-4a82-963c-4fa69d5413ef</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;Sorry to drag this on! But lets say, i have another field called &lt;strong&gt;&amp;#39;Contact Quality&amp;#39;&lt;/strong&gt; which I want to add in to this formula which is in the Contacts module. The field consists of 5 options in a drop down list.&amp;nbsp;&lt;/p&gt;&lt;p&gt;In order for the score to be determined, I would like the employees field value range to be met and the specific option from the drop down list in the &lt;strong&gt;&amp;#39;Contact Quality&amp;#39; &lt;/strong&gt;to determine what the score would be. i.e.&lt;/p&gt;&lt;p&gt;if an account has less than&lt;strong&gt; (Employee field)&lt;/strong&gt; 500 employees and the &lt;strong&gt;(Contact quality drop down list)&lt;/strong&gt; Option 1 was chosen, then assign a score of 1.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;if an account has less than&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(Employee field)&lt;/strong&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;5000&lt;/span&gt;&amp;nbsp;employees and the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;(Contact quality drop down list)&lt;/strong&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Option 3 was chosen, then assign a score of 10.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;And so on...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Any thoughts on how this can be implemented within the score field?&amp;nbsp;&lt;a href="https://sugarclub.sugarcrm.com/members/rifa"&gt;Chris Raffle&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11177?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 17:02:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0debb44c-7d19-4a23-96f7-ec9c7ba47c24</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;Much appreciated there Chris. Works like a charm! &lt;span class="emoticon-inline emoticon_grin" style="height:16px;width:16px;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11176?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 16:52:05 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5f9b7602-4870-4979-9f4b-3aa0d6f62d1d</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/pdesai101"&gt;Punit&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;You can achieve this scoring in the Meetings module&amp;nbsp;with the following calculation:&lt;/p&gt;&lt;pre class="language-none line-numbers"&gt;&lt;code&gt;ifElse(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;not(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;greaterThan(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;related($accounts,&amp;quot;employees&amp;quot;), 500&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ifElse(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;not(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;greaterThan(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;related($accounts,&amp;quot;employees&amp;quot;), 1000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ifElse(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;not(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;greaterThan(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;related($accounts,&amp;quot;employees&amp;quot;), 2000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;)&lt;span class="line-numbers-rows"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Using not() with greaterThan() creates the same effect as a &amp;quot;less than or equal to&amp;quot; formula. If the employee number is greater than the number evaluated, the false condition of ifElse() evaluates the&amp;nbsp;upper limit&amp;nbsp;of the next scoring tier. This formula also assumes you are evaluating against the native Accounts &amp;lt;-&amp;gt; Meetings relationship and would only function if the meeting record is related to the account through the stock flex relate field. If you have a custom relationship between the 2 modules to always capture the related account, then modify the $accounts variable accordingly.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this helps!&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11175?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 16:08:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:65e39e9a-ab15-4dda-b8d0-c48bad5b5c9a</guid><dc:creator>Punit Desai</dc:creator><description>&lt;p&gt;The default sugar field was a text field which I ended up changing recently. It is now an integer field. There is no way the field can contain regular characters now. I made sure to change that before starting this whole process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create calculated field by using a field from another module.</title><link>https://sugarclub.sugarcrm.com/thread/11174?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 15:56:39 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2f0a3819-095a-47ec-aeb4-81e81816eb43</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/pdesai101"&gt;Punit&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;To give the best guidance, can you clarify how you are tracking the number of employees on the account record? Are you using the stock &amp;#39;Employees&amp;#39; field or a custom field? If&amp;nbsp;you are using a&amp;nbsp;custom field, what field type (e.g. text, integer, etc.) is associated with the field?&amp;nbsp;The stock &amp;#39;Employees&amp;#39; field is a text field so there is no guarantee that the value in the field will be numeric. If you are using the &amp;#39;Employees&amp;#39; field or a custom text field, what score would you want associated if the field contains non-numeric values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>