<?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>Alert or pop-up feature for Do Not Contact?</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/8021/alert-or-pop-up-feature-for-do-not-contact</link><description>We have an issue where we need to inform or alert our Sugar users when an account is in a &amp;quot;quiet period&amp;quot; (or any contact, lead, target related to that account). We sell to large health systems that typically go through an RFP buying process. During that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Alert or pop-up feature for Do Not Contact?</title><link>https://sugarclub.sugarcrm.com/thread/32904?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 07:51:22 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:93b94779-7641-4bdf-8a4e-59fa343a6c1a</guid><dc:creator>Julia Weinhold</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/ben.peterson"&gt;Ben Peterson&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;We actually have the same&amp;nbsp;challenge right now &lt;span class="emoticon" data-url="https://sugarclub.sugarcrm.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The email-domain approach is really interesting&amp;nbsp;- we currently start this process from an Opportunity switching to a specific stage which already shows that you are not allowed to contact the customer as long as this phase is active (it can only be removed by actions in a specific Smart Guide).&lt;/p&gt;
&lt;p&gt;We show that with this &amp;quot;No smartphone&amp;quot; emoji at the start and end of the display label (which obviously is a thing you can do!), so it looks like this:&lt;/p&gt;
&lt;p&gt;:&amp;nbsp;&lt;img style="height:103px;max-height:103px;max-width:348px;" height="103" src="/resized-image/__size/696x206/__key/communityserver-discussions-components-files/42/pastedimage1741938116312v1.png" width="347" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionallly, with the help of BPM we inherit this to the Account record, where we show it in two ways: 1) with a big red action button that doesn&amp;#39;t actually do anything other than being big and red and 2) with another status-drodpown, because sadly, the action buttons only show up in desktop and mobile but are not visible in Sugar Connect. With the additional dropdown, you can also make it visible in list views:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/42/pastedimage1741938389002v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/42/pastedimage1741938420137v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope that helps, at least in the &amp;quot;How to visualize this without code customization?&amp;quot;-department ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert or pop-up feature for Do Not Contact?</title><link>https://sugarclub.sugarcrm.com/thread/32896?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 20:45:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3058ddfe-c9e7-4e5b-bee1-3feeb996c313</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;We did something similar which puts a &amp;quot;Badge&amp;quot; on Contacts, Accounts etc when the criteria for that record matches our script/API.&lt;/p&gt;
&lt;p&gt;The &amp;quot;Badge&amp;quot; looks like the yellow &amp;quot;Converted&amp;quot; but because we use a CSS class of &amp;quot;label-important&amp;quot; it&amp;#39;s Red.&lt;br /&gt;We use the same &amp;quot;Badge&amp;quot; across multiple modules.&lt;/p&gt;
&lt;p&gt;Similarly, you can create a no_contact_badge &amp;quot;Badge&amp;quot; which will display if your criteria is met and hidden if not.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;For example in the custom directory define your field:&lt;br /&gt;custom/clients/base/fields/no_contact_badge/no_contact_badge.js&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;({
  extendsFrom: &amp;#39;BadgeField&amp;#39;,
  showNoData: false,
  currentLabel: undefined,
  currentCSSClass: undefined,
  initialize: function(options) {
    options.def.readonly = true;
    this._super(&amp;#39;initialize&amp;#39;, [options]);
    this._setState();
  },
  _setState: function(){
    var self = this,
        module = self.context.get(&amp;#39;module&amp;#39;),
        id = self.model.get(&amp;#39;id&amp;#39;);
    var url = app.api.buildURL(&amp;#39;getNoContact&amp;#39;);
    app.api.call(&amp;#39;create&amp;#39;, url, {&amp;#39;bean_module&amp;#39;:module, &amp;#39;bean_id&amp;#39;:id}, {
      success:function(noContact){
        if(noContact){
            self.currentCSSClass = &amp;#39;label-important&amp;#39;;
            self.currentLabel = &amp;#39;noContact&amp;#39; ;
            self.display = true;
        }else{
            self.display = false;
        }
        self._render();
      },
      error: function(e) {
        console.log(e);
      }
    });
  },
})&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;My detail.hbs (in that same directory) is really simple show if display is true:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;pre class="ui-code" data-mode="text"&gt;{{#if this.display}}
&amp;lt;span class=&amp;quot;label {{this.currentCSSClass}}&amp;quot;&amp;gt;{{this.currentLabel}}&amp;lt;/span&amp;gt;
{{/if}}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;In&amp;nbsp;the custom API called by your BadgeField&amp;#39;s controller a simple query will give you all the email addresses related to that Bean and you can loop through to see if any of&amp;nbsp;their domains are &amp;quot;do not contact&amp;quot; in your custom module, and return true if any are, false if not.&lt;br /&gt;&lt;/span&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="sql"&gt;SELECT email_address 
FROM email_addr_bean_rel eabr
JOIN email_addresses ea ON (eabr.email_address_id = ea.id)
WHERE bean_module = ? AND eabr.bean_id = ? AND eabr.deleted=0&amp;quot;;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;In each of the modules where the badge should display add the badge to the record view&amp;#39;s panel header.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;it will look something like:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;pre class="ui-code" data-mode="php"&gt;        array (
          &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;no_contact_c&amp;#39;,
          &amp;#39;type&amp;#39; =&amp;gt; &amp;#39;no_contact_badge&amp;#39;,
          &amp;#39;readonly&amp;#39; =&amp;gt; true,
          &amp;#39;dismiss_label&amp;#39; =&amp;gt; true,
        ),
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Hope this helps,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Francesca&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>