<?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>Process definitions - Field evaluations for multi-select fields</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/2619/process-definitions---field-evaluations-for-multi-select-fields</link><description>I am using v7.8 Enterprise edition. So let&amp;#39;s say I have a multi-select field with the following values: - A - B - C - D - E - F - G I want values A, B, and C to each trigger their own email notifications. So if the user selects A and C, two separate emails</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process definitions - Field evaluations for multi-select fields</title><link>https://sugarclub.sugarcrm.com/thread/14463?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 21:32:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:aa162e13-f2d9-4077-ab4e-ac0653c7fab1</guid><dc:creator>Jacquelyn Lane</dc:creator><description>&lt;p&gt;Aaron, we utilize the following workaround:&lt;/p&gt;&lt;p&gt;- Create a hidden checkbox field for each multi-select value that needs to trigger a workflow&lt;/p&gt;&lt;p&gt;- The checkbox contains the following calculated value formula, which toggles the checkbox to &amp;quot;true&amp;quot; if the relevant multi-select value is added:&amp;nbsp;ifElse(contains($mutli_field_c,&amp;quot;Multi Value&amp;quot;),true,false)&lt;/p&gt;&lt;p&gt;- A true value in the check box is then used to trigger the start event in the workflow&lt;/p&gt;&lt;p&gt;Hope that helps.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process definitions - Field evaluations for multi-select fields</title><link>https://sugarclub.sugarcrm.com/thread/14462?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 08:53:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:705f5886-b3bc-4c1b-aede-099b9871cc65</guid><dc:creator>Aaron Riley</dc:creator><description>&lt;p&gt;I am looking for exactly the same functionality within one of my own definitions. As Scott mentions above, it will only start if I have only one option in each section of the divergent gateway. I can workaround this, but it will make my workflow much less simple to manage going forward. Does anyone know if an enhancement has been logged for this? If so, its getting a +1 from me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process definitions - Field evaluations for multi-select fields</title><link>https://sugarclub.sugarcrm.com/thread/14461?ContentTypeID=1</link><pubDate>Sat, 17 Mar 2018 17:00:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ffa11882-3b01-4016-a0c1-45a1cb883068</guid><dc:creator>Scott Oldfield</dc:creator><description>&lt;p&gt;I came here with a similar question to the OP. I&amp;#39;ve got a multiselect question and like to kick off a process when one of the items is selected, but the process will only kick off it it&amp;#39;s the ONLY one selected. There is no &amp;quot;includes&amp;quot; option in the module field evaluation, only &amp;quot;is&amp;quot; or &amp;quot;is not&amp;quot;. Unfortunately, I don&amp;#39;t know enough about coding within Sugar to go down that route at this time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process definitions - Field evaluations for multi-select fields</title><link>https://sugarclub.sugarcrm.com/thread/14460?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 16:10:27 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cc91302c-ba8d-42b0-a153-63cee36419a7</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;If the field is a multi-enum you should have contains and not contains options.&lt;/p&gt;&lt;p&gt;See:&amp;nbsp;&lt;span style="color:#000000;background-color:#ffffff;border:0px;"&gt;clients/base/filters/operators/operators.php&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;$&lt;/span&gt;&lt;span class=""&gt;viewdefs&lt;/span&gt;&lt;span class=""&gt;[&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;base&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;][&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;filter&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;][&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;operators&lt;/span&gt;&lt;span class=""&gt;'&lt;/span&gt;&lt;span class=""&gt;]&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;=&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;array&lt;/span&gt;&lt;span class=""&gt;(&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;multienum&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&lt;/span&gt;&lt;span class=""&gt;&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;array&lt;/span&gt;&lt;span class=""&gt;(&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$contains&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_CONTAINS&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$not_contains&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_NOT_CONTAINS&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=""&gt;)&lt;/span&gt;&lt;span class=""&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;enum&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;array&lt;/span&gt;&lt;span class=""&gt;(&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$in&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_CONTAINS&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$not_in&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_NOT_CONTAINS&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$empty&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_EMPTY&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span class=""&gt;$not_empty&lt;/span&gt;&lt;span class=""&gt;&amp;#39; &lt;/span&gt;&lt;span class=""&gt;=&amp;gt;&lt;/span&gt;&lt;span class=""&gt; &amp;#39;&lt;/span&gt;&lt;span class=""&gt;LBL_OPERATOR_NOT_EMPTY&lt;/span&gt;&lt;span class=""&gt;&amp;#39;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=""&gt;)&lt;/span&gt;&lt;span class=""&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;I assume your&amp;nbsp;&amp;quot;Field&amp;quot; dropdown is an enum so it&amp;#39;s using the enum operators.&lt;/p&gt;&lt;p class=""&gt;By default something like what you have in the image would be trying to filter the &amp;quot;Field&amp;quot; not that fields&amp;#39; values&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;I suppose you could try to force the &amp;quot;Field&amp;quot; to be a multienum or define your own field type with its own operators.&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;It&amp;#39;s not very clear to me how you are filtering that field&amp;#39;s values as opposed to the filed names.&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;If instead you were to filter things at code-level:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;multiselect values are encoded into a string where&amp;nbsp;the values are comma separated and delimited with a ^&lt;/p&gt;&lt;p&gt;For example: if you select A and C the value of the field in the database will be the string:&amp;nbsp;&lt;/p&gt;&lt;p&gt;^A^,^C^ or possibly ^C^,^A^ depending in which order you selected them.&lt;/p&gt;&lt;p&gt;There are functions to decode and encode multienums&lt;/p&gt;&lt;p&gt;See include/utils.php&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;function&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;unen&lt;/span&gt;&lt;span class=""&gt;codeMultienum&lt;/span&gt;&lt;span class=""&gt;(&lt;/span&gt;&lt;span class=""&gt;$&lt;/span&gt;&lt;span class=""&gt;string&lt;/span&gt;&lt;span class=""&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;and&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;function&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class=""&gt;encode&lt;/span&gt;&lt;span class=""&gt;MultienumValue&lt;/span&gt;&lt;span class=""&gt;(&lt;/span&gt;&lt;span class=""&gt;$&lt;/span&gt;&lt;span class=""&gt;arr&lt;/span&gt;&lt;span class=""&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;unencodeMultienum(&amp;#39;&lt;span&gt;^A^,^C^&amp;#39;) will give you an array with two values: A and C&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span&gt;So you can unencode the value of the multienum and then check the array values for the relevant criteria.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span&gt;HTH,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;span&gt;FrancescaS&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>