<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.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>Dev Answers &amp;amp; Best Practices - Recent Threads</title><link>https://sugarclub.sugarai.com/dev-club/f/questions-answers</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SugarIdentity OAuth flow for third-party app integration for SSO users</title><link>https://sugarclub.sugarai.com/thread/33800?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2026 19:27:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f3d4c805-849b-4d10-b5a3-a6c29cf0228d</guid><dc:creator>Jeff Bickart</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33800?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8359/sugaridentity-oauth-flow-for-third-party-app-integration-for-sso-users/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I believe In SugarIDM you can create a user and set their&amp;nbsp;Local Authentication Username; this avoids using whatever you might use for SSO (Google or MSFT, etc)&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to create a password for this user using the Forgot Password functionality.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you have both the username and password&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll obtain a token the same as you normally would at https://&amp;lt;sugar&amp;gt;/rest/v11/&lt;span&gt;oauth2/token; The pass thru to IDM is handled for you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We do this with our iPaas integrations, etc&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>SugarIdentity OAuth flow for third-party app integration for SSO users</title><link>https://sugarclub.sugarai.com/thread/8359?ContentTypeID=0</link><pubDate>Thu, 26 Mar 2026 16:08:04 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a904833a-2730-44eb-807f-d3239d162e50</guid><dc:creator>Dimitry Polivaev</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/8359?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8359/sugaridentity-oauth-flow-for-third-party-app-integration-for-sso-users/rss?ContentTypeId=0</wfw:commentRss><description>&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;I am trying to integrate my third-party application with the Sugar REST API for a SugarCloud instance that uses SugarIdentity.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;I found a description of a SugarIdentity 3-legged OAuth consent flow for &lt;/span&gt;&lt;strong&gt;&lt;span&gt;OPI (Sugar Outlook Plug-In)&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, where the user is redirected to the Sugar login service, authenticates through the IdP, sees a SugarIdentity consent screen, and the client receives access and refresh tokens.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;However, I could not find equivalent documentation for integrating a custom third-party application.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;Could you please explain how this integration should be implemented today for an external app?&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;Specifically, I need to understand the supported flow for a third-party app that accesses the Sugar REST API &lt;/span&gt;&lt;strong&gt;&lt;span&gt;on behalf of an SSO user&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; in a SugarIdentity-enabled tenant.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;The main points I need are:&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Where should the third-party app/client be registered?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Which OAuth flow should be used for this scenario?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;What are the correct authorization and token endpoints?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Can a normal &lt;/span&gt;&lt;strong&gt;&lt;span&gt;SSO user&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; authorize such an app and grant access to their Sugar data?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;If there is documentation for this flow, could you please share it?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;I am not asking about configuring Okta/Azure/Google as login providers for Sugar itself.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I am asking about a custom external app integrating with Sugar via SugarIdentity &lt;/span&gt;&lt;strong&gt;&lt;span&gt;for SSO users&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div data-testid="markdown-response"&gt;
&lt;div&gt;
&lt;p id="message"&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Best way to add extra info to assign notification email</title><link>https://sugarclub.sugarai.com/thread/5621?ContentTypeID=0</link><pubDate>Fri, 06 May 2022 13:49:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:91b4d2e6-5f90-4510-9c24-08694794d622</guid><dc:creator>Jeroen Somhorst</dc:creator><slash:comments>6</slash:comments><comments>https://sugarclub.sugarai.com/thread/5621?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/5621/best-way-to-add-extra-info-to-assign-notification-email/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would like to add extra information to the notification email template. More information regarding the record that is being assigned. When I add $contacts_name using the insert button it doesn&amp;#39;t seem to be working? Is there an easy (read: non programming) to add extra information to the assign notification mail?&lt;/p&gt;</description></item><item><title>RE: Best way to add extra info to assign notification email</title><link>https://sugarclub.sugarai.com/thread/33790?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2026 13:33:50 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:daf39979-49cc-4715-87ec-5b92b702d901</guid><dc:creator>Phuong Trinh</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33790?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/5621/best-way-to-add-extra-info-to-assign-notification-email/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi &lt;a href="/members/enessaridogan201599"&gt;Enes Saridogan&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;I&lt;/span&gt;&lt;span class="streaming-char"&gt; am experiencing the same issue. &lt;/span&gt;&lt;span class="streaming-char"&gt;I am trying to add the &lt;/span&gt;&lt;strong&gt;&lt;code&gt;&lt;span class="streaming-char"&gt;account_description&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; field to the system assignment notification email for the Leads module, but the data is not pulling through&amp;mdash;the field remains empty in the received email.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;S&lt;/span&gt;&lt;span class="streaming-char"&gt;ince &lt;/span&gt;&lt;code&gt;&lt;span class="streaming-char"&gt;account_description&lt;/span&gt;&lt;/code&gt;&lt;span class="streaming-char"&gt; is a stock field in the Leads module, I expected it to be readily available, but i&lt;/span&gt;&lt;span class="streaming-char"&gt;t seems I am missing something in the implementation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;C&lt;/span&gt;&lt;span class="streaming-char"&gt;ould someone please take a look at my code below? I can&amp;#39;t figure out why the value isn&amp;#39;t being parsed correctly:&lt;/span&gt;&lt;/p&gt;
&lt;div class="code-block-wrapper rounded bg-white"&gt;
&lt;div class="code-block-header flex items-center justify-between px-4 py-2 bg-gray-100"&gt;&lt;span class="text-sm text-gray-700"&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;!-- BEGIN: Lead_Subject --&amp;gt;
SugarCRM Lead - {LEAD_NAME}
&amp;lt;!-- END: Lead_Subject --&amp;gt;
&amp;lt;!-- BEGIN: Lead --&amp;gt;
{ASSIGNER} a assign&amp;#233; un Lead &amp;#224; {ASSIGNED_USER}.

Nom: {LEAD_NAME}
Origine principale: {LEAD_SOURCE}
Statut: {LEAD_STATUS}
Description: {LEAD_DESCRIPTION}
Message de Lead : {ACCOUNT_DESCRIPTION} // &amp;#39;new field&amp;#39;

Vous pouvez consulter la fiche de ce Lead ici:
&amp;lt;{URL}&amp;gt;
&amp;lt;!-- END: Lead --&amp;gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;A&lt;/span&gt;&lt;span class="streaming-char"&gt;ny insights or corrections would be greatly appreciated. Is there a specific wa&lt;/span&gt;&lt;span class="streaming-char"&gt;y to reference this field in the fr&lt;/span&gt;&lt;code&gt;&lt;span class="streaming-char"&gt;_FR.notify_template.html&lt;/span&gt;&lt;/code&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;span class="streaming-char"&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;T&lt;/span&gt;&lt;span class="streaming-char"&gt;hanks in advance for your h&lt;/span&gt;&lt;span class="streaming-char"&gt;elp!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Custom Field not populating in System Assignment Notifications (Leads module)</title><link>https://sugarclub.sugarai.com/thread/8368?ContentTypeID=0</link><pubDate>Mon, 13 Apr 2026 13:03:48 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:61634fc0-af8d-4e86-8f71-895ae5bc25ab</guid><dc:creator>Phuong Trinh</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/8368?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8368/custom-field-not-populating-in-system-assignment-notifications-leads-module/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span class="streaming-char"&gt;H&lt;/span&gt;&lt;span class="streaming-char"&gt;i everyone,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;I&lt;/span&gt;&lt;span class="streaming-char"&gt; am encountering an issue with &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;System Assignment Notifications&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; in the Leads module and would appreciate some advice from the community.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;The Problem:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span class="streaming-char"&gt;I&lt;/span&gt;&lt;span class="streaming-char"&gt; am trying to include a&amp;nbsp;natif&amp;nbsp;field called &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;&amp;quot;Message du lead&amp;quot; (account_description)&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; in the notification email sent to users when a Lead is assigned to them. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;Observations:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;span class="streaming-char"&gt;The field is correctly populated within the SugarCRM record view&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/54/pastedimage1776084641212v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;span class="streaming-char"&gt;However, the field remain&lt;/span&gt;&lt;span class="streaming-char"&gt;s &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;blank&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; in the actual notification email received by the user.&amp;nbsp;&lt;/span&gt;It appears that the variable used in the notification template is not correctly pulling the data from the Lead bean during the notification trigger.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;&lt;img style="max-height:251px;max-width:416px;" height="251" src="/resized-image/__size/832x502/__key/communityserver-discussions-components-files/54/pastedimage1776084672593v2.png" width="416" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;Technical Context:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;Module:&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; Leads&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;Field Name:&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span class="streaming-char"&gt;account_description&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="streaming-char"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;Deployment:&lt;/span&gt;&lt;/strong&gt;&lt;span class="streaming-char"&gt; SugarCloud&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;My Question:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span class="streaming-char"&gt;H&lt;/span&gt;&lt;span class="streaming-char"&gt;as anyone successfully added more fields to the system assignment notifications? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;I&lt;/span&gt;&lt;span class="streaming-char"&gt;s there a specific syntax to use in the &lt;/span&gt;&lt;code&gt;&lt;span class="streaming-char"&gt;fr_FR.notify_template.html&lt;/span&gt;&lt;/code&gt;&lt;span class="streaming-char"&gt; file for custom fields?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;Here is the code modified :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:003795b9-e924-4a77-aba2-bc8e2f63ffb8:type=text&amp;text=%3C%21--%20BEGIN%3A%20Lead_Subject%20--%3E%0ASugarCRM%20Lead%20-%20%7BLEAD_NAME%7D%0A%3C%21--%20END%3A%20Lead_Subject%20--%3E%0A%3C%21--%20BEGIN%3A%20Lead%20--%3E%0A%7BASSIGNER%7D%20a%20assign%C3%A9%20un%20Lead%20%C3%A0%20%7BASSIGNED_USER%7D.%0A%0ANom%3A%20%7BLEAD_NAME%7D%0AOrigine%20principale%3A%20%7BLEAD_SOURCE%7D%0AStatut%3A%20%7BLEAD_STATUS%7D%0ADescription%3A%20%7BLEAD_DESCRIPTION%7D%0AMessage%20de%20Lead%20%3A%20%7BLEAD_SOURCE_DESCRIPTION%7D%20%2F%2F%20%27new%20field%27%0A%0AVous%20pouvez%20consulter%20la%20fiche%20de%20ce%20Lead%20ici%3A%0A%3C%7BURL%7D%3E%0A%3C%21--%20END%3A%20Lead%20--%3E]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;A&lt;/span&gt;&lt;span class="streaming-char"&gt;ny guidance, code snippets, or best practices would be greatly appreciated!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="streaming-char"&gt;T&lt;/span&gt;&lt;span class="streaming-char"&gt;hanks in advance,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="streaming-char"&gt;H. Phuong&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Error: POST /rest/v11_27/Contacts/ — 500 Internal Server Error (confirmed via browser console)</title><link>https://sugarclub.sugarai.com/thread/8366?ContentTypeID=0</link><pubDate>Thu, 09 Apr 2026 18:24:06 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:293b7f98-9300-4bef-8275-af6eaf451f0f</guid><dc:creator>Kelli Morgan</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/8366?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8366/error-post-rest-v11_27-contacts-500-internal-server-error-confirmed-via-browser-console/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are experiencing a critical issue in SugarCRM where no users can open any contact records. The contact record will open for a split second, then the system displays an &amp;quot;Unknown Error&amp;quot; message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:154px;max-width:279px;" height="154" src="/resized-image/__size/558x308/__key/communityserver-discussions-components-files/54/pastedimage1775757723312v1.png" width="279" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is a summary of what we found:&lt;/p&gt;
&lt;p&gt;ERROR:&lt;br /&gt;POST /rest/v11_27/Contacts/ &amp;mdash; 500 Internal Server Error (confirmed via browser console)&lt;/p&gt;
&lt;p&gt;This occurred around the same time a mass update of 30 fields and report generation.&amp;nbsp; Schedulers were also likely to be simultaneously running.&lt;/p&gt;
&lt;p&gt;ADDITIONAL DETAILS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Affects all users on all contact records&lt;/li&gt;
&lt;li&gt;SugarCRM log shows repeated CSRF errors: &amp;quot;ModuleBuilder -&amp;gt; savetablesort&amp;quot;&lt;/li&gt;
&lt;li&gt;Quick Repair and Rebuild has been run with no errors&lt;/li&gt;
&lt;li&gt;Restoring previous layout versions from history has not resolved the issue&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Version 25.2./Sell Advanced&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Has anyone else experienced this issue?&amp;nbsp; If so, any suggestions?&amp;nbsp;&lt;/p&gt;</description></item><item><title>RE: Error: POST /rest/v11_27/Contacts/ — 500 Internal Server Error (confirmed via browser console)</title><link>https://sugarclub.sugarai.com/thread/33787?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2026 10:26:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1342c501-56f5-47d4-a7cf-cbcc022bd1d3</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33787?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8366/error-post-rest-v11_27-contacts-500-internal-server-error-confirmed-via-browser-console/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/kellikmorgan"&gt;Kelli Morgan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for creating this entry. The 500 error you&amp;#39;re seeing is a good starting point.&lt;/p&gt;
&lt;p&gt;This type of error will typically also generate an entry in the PHP error logs of the instance, which can help identify the root cause. Could you check whether there are any log entries recorded at the same time the error appears?&lt;/p&gt;
&lt;p&gt;From experience, if the contact record loads briefly before failing, this could indicate the issue is related to elements that take slightly longer to load in the record view, such as dashlets.&lt;/p&gt;
&lt;p&gt;As a troubleshooting step, you could try removing the dashlets from the record view to see if that prevents the error.&lt;/p&gt;
&lt;p&gt;That said, checking the server logs is definitely the best next step.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Let us know what you find.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Cheers,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Andr&amp;eacute;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after repair</title><link>https://sugarclub.sugarai.com/thread/33785?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2026 08:45:23 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:922a27c9-b73c-48fb-90b1-918d99c43475</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33785?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8365/issue-after-repair/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello &lt;a href="/members/adrianarauz347046"&gt;Adrian Arauz&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As this issue is happening during a Repair, I would suspect that something is preventing all the required files from being created. &lt;br /&gt;&lt;br /&gt;The first thing I would check is to scan the php error logs to see if you spot any&amp;nbsp;entries&amp;nbsp;related to filesystem permissions, or memory exhaustion errors that could have occurred during the QRR process.&lt;/p&gt;
&lt;p&gt;Can you also check the SugarCRM log to see if there are any DB queries erroring out?&lt;/p&gt;
&lt;p&gt;Let us know what you find.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Cheers,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Andr&amp;eacute;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issue after repair</title><link>https://sugarclub.sugarai.com/thread/8365?ContentTypeID=0</link><pubDate>Mon, 06 Apr 2026 14:48:56 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8dd2135b-6117-4454-af81-d14d3e5ead85</guid><dc:creator>Adrian Arauz</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/8365?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8365/issue-after-repair/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello, good day. We&amp;#39;re experiencing a problem repairing SugarCRM Enterprise version 25.1.2. For the past few days, we&amp;#39;ve noticed that after repairing, we&amp;#39;re getting an unknown error. We&amp;#39;ve resolved this by copying the cache folder and updating a Google folder within the vendor directory using Composer.&lt;/p&gt;
&lt;p&gt;Has anyone else experienced this? Any recommendations to prevent it from happening again?&lt;br /&gt;&lt;br /&gt;&lt;img src="/cfs-file/__key/communityserver-discussions-components-files/54/pastedimage1774967528687v1.png" alt=" " /&gt;&lt;/p&gt;</description></item><item><title>Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/8363?ContentTypeID=0</link><pubDate>Wed, 01 Apr 2026 18:11:20 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ebe9b3c8-314d-4e52-905c-5c3cc7b9a49e</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>6</slash:comments><comments>https://sugarclub.sugarai.com/thread/8363?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I was working on cleaning up some very very old code (I think v6 or v7)&lt;/p&gt;
&lt;p&gt;As I do that I wanted to be more consistent with naming conventions&lt;/p&gt;
&lt;p&gt;The original logic hook was&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;$&lt;/span&gt;&lt;span class="s2"&gt;hook_array&lt;/span&gt;&lt;span class="s3"&gt;[&lt;/span&gt;&lt;span class="s4"&gt;&amp;#39;process_record&amp;#39;&lt;/span&gt;&lt;span class="s3"&gt;][]&lt;/span&gt;&lt;span class="s5"&gt; &lt;/span&gt;&lt;span class="s1"&gt;=&lt;/span&gt;&lt;span class="s5"&gt; &lt;/span&gt;&lt;span class="s6"&gt;Array&lt;/span&gt;&lt;span class="s3"&gt;(&lt;/span&gt;&lt;span class="s4"&gt;1&lt;/span&gt;&lt;span class="s5"&gt;,&lt;/span&gt;&lt;span class="s4"&gt;&amp;#39;conditional_formatting&amp;#39;&lt;/span&gt;&lt;span class="s5"&gt;,&lt;/span&gt;&lt;span class="s4"&gt;&amp;#39;&lt;/span&gt;&lt;span class="s7"&gt;custom&lt;/span&gt;&lt;span class="s4"&gt;/modules/Cases/conditional_formatting.php&amp;#39;&lt;/span&gt;&lt;span class="s5"&gt;,&lt;/span&gt;&lt;span class="s4"&gt;&amp;#39;ConditionalFormatting&amp;#39;&lt;/span&gt;&lt;span class="s5"&gt;,&lt;/span&gt;&lt;span class="s4"&gt;&amp;#39;conditional_formatting&amp;#39;&lt;/span&gt;&lt;span class="s3"&gt;)&lt;/span&gt;&lt;span class="s5"&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;The cleaned up one was using camel case for the function, and a better name for the file&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;&lt;span class="token token php language-php"&gt;$hook_array&lt;/span&gt;&lt;span class="token token php language-php"&gt;[&lt;/span&gt;&lt;span class="token token php language-php single-quoted-string"&gt;&amp;#39;process_record&amp;#39;&lt;/span&gt;&lt;span class="token token php language-php"&gt;]&lt;/span&gt;&lt;span class="token token php language-php"&gt;[&lt;/span&gt;&lt;span class="token token php language-php"&gt;]&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php"&gt;=&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php"&gt;array&lt;/span&gt;&lt;span class="token token php language-php"&gt;(&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php"&gt;1&lt;/span&gt;&lt;span class="token token php language-php"&gt;,&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php single-quoted-string"&gt;&amp;#39;conditionalFormatting&amp;#39;&lt;/span&gt;&lt;span class="token token php language-php"&gt;,&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php single-quoted-string"&gt;&amp;#39;custom/modules/Cases/Cases_ConditionalFormatting_Logic.php&amp;#39;&lt;/span&gt;&lt;span class="token token php language-php"&gt;,&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php single-quoted-string"&gt;&amp;#39;ConditionalFormatting&amp;#39;&lt;/span&gt;&lt;span class="token token php language-php"&gt;,&lt;/span&gt;&lt;span class="token token php language-php"&gt; &lt;/span&gt;&lt;span class="token token php language-php single-quoted-string"&gt;&amp;#39;conditionalFormatting&amp;#39;&lt;/span&gt;&lt;span class="token token php language-php"&gt;)&lt;/span&gt;&lt;span class="token token php language-php"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;&lt;span class="token token php language-php"&gt;Of course the class and the function names were changed consistently in the new file, the old file was removed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;&lt;span class="token token php language-php"&gt;I did a QRR, cleared cache etc... the logic_hook refuses to fire with the new names. I put a fatal log entry at the start of the hook function, nothing in the log.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;&lt;span class="token token php language-php"&gt;If all I do is change the name of the refactored file, name of the function and name of the class to the old ones then everything runs smoothly.&lt;br /&gt;&lt;br /&gt;Why would that be? How can renaming something (consistently I might add) break it?&lt;br /&gt;It&amp;#39;s puzzling...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s5"&gt;&lt;span class="token token php language-php"&gt;FrancescaS&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33784?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 21:45:18 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6e50f655-a994-413c-b682-6a153322497a</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33784?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Yes, the original hook works fine.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think it&amp;#39;s worth your time trying to figure this out.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for the note on the change in Logic Hooks, I&amp;#39;ll plan to move to Extensions with the next upgrade. It will be a bit of work given that&amp;nbsp;over 40&amp;nbsp;modules have logic hooks...&lt;/p&gt;
&lt;p&gt;Thanks again!&amp;nbsp;&lt;br /&gt;Francesca&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33783?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 15:59:55 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3de3850e-9c28-4c05-aae5-38ae17ae2bc0</guid><dc:creator>Angel Magana</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33783?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Whether it shows or doesn&amp;#39;t will be dependent on how one goes about defining the hook.&lt;/p&gt;
&lt;p&gt;Older versions of Sugar would use the approach that leverages the logic_hooks.php file. At some point, we introduced Logic Hooks into the capabilities of the Extensions Framework, which then allowed one to define a logic hook by way of extensions and in turn, use the logichooks.ext.php file. Both approaches are equally valid, but we do favor the Extensions approach for situations where a customization can be implemented through multiple means.&lt;/p&gt;
&lt;p&gt;Your hooks are likely configured that way due to their age. There is nothing inherently wrong with them.&lt;/p&gt;
&lt;p&gt;As a side note, the order numbering is fine. That&amp;#39;s mostly relevant for scenarios where you have multiple hooks of the same type (e.g. before_save) and need them to execute in a specific order.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll ask a dumb question, does the hook work if you rename the files back to their prior name?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33782?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 15:45:57 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d5643d38-0351-4137-992d-4642a1ce7d3d</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33782?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t, but should they? &lt;br /&gt;I don&amp;#39;t see any custom logic hooks in that file, not even for the hooks that work just fine.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is all I see in&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;custom/modules/Cases/Ext/LogicHooks/logichooks.ext.php &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="php"&gt;&amp;lt;?php
// WARNING: The contents of this file are auto-generated.
?&amp;gt;
&amp;lt;?php
// Merged from modules/Cases/Ext/LogicHooks/RelationshipHook.php

/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */

$hook_array[&amp;#39;before_relationship_delete&amp;#39;][] = [
    1,
    &amp;#39;beforeRelationshipDelete&amp;#39;,
    &amp;#39;modules/Cases/CasesHooks.php&amp;#39;,
    &amp;#39;CasesHooks&amp;#39;,
    &amp;#39;beforeRelationshipDelete&amp;#39;,
];

$hook_array[&amp;#39;after_relationship_add&amp;#39;][] = [
    1,
    &amp;#39;afterRelationshipAdd&amp;#39;,
    &amp;#39;modules/Cases/CasesHooks.php&amp;#39;,
    &amp;#39;CasesHooks&amp;#39;,
    &amp;#39;afterRelationshipAdd&amp;#39;,
];

$hook_array[&amp;#39;after_relationship_delete&amp;#39;][] = [
    1,
    &amp;#39;afterRelationshipDelete&amp;#39;,
    &amp;#39;modules/Cases/CasesHooks.php&amp;#39;,
    &amp;#39;CasesHooks&amp;#39;,
    &amp;#39;afterRelationshipDelete&amp;#39;,
];

?&amp;gt;
&amp;lt;?php
// Merged from custom/Extension/modules/Cases/Ext/LogicHooks/denorm_field_hook.php

/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */

// Relate Field Denormalization hook

$hook_array[&amp;#39;before_save&amp;#39;][] = [
    1,
    &amp;#39;denorm_field_watcher&amp;#39;,
    null,
    &amp;#39;\\Sugarcrm\\Sugarcrm\\Denormalization\\Relate\\Hook&amp;#39;,
    &amp;#39;handleBeforeUpdate&amp;#39;,
];

$hook_array[&amp;#39;after_save&amp;#39;][] = [
    1,
    &amp;#39;denorm_field_watcher&amp;#39;,
    null,
    &amp;#39;\\Sugarcrm\\Sugarcrm\\Denormalization\\Relate\\Hook&amp;#39;,
    &amp;#39;handleAfterUpdate&amp;#39;,
];

$hook_array[&amp;#39;before_relationship_delete&amp;#39;][] = [
    1,
    &amp;#39;denorm_field_watcher&amp;#39;,
    null,
    &amp;#39;\\Sugarcrm\\Sugarcrm\\Denormalization\\Relate\\Hook&amp;#39;,
    &amp;#39;handleDeleteRelationship&amp;#39;,
];

$hook_array[&amp;#39;after_relationship_add&amp;#39;][] = [
    1,
    &amp;#39;denorm_field_watcher&amp;#39;,
    null,
    &amp;#39;\\Sugarcrm\\Sugarcrm\\Denormalization\\Relate\\Hook&amp;#39;,
    &amp;#39;handleAddRelationship&amp;#39;,
];

?&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And these are my working (tested) Logic hooks,&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;custom/modules/Cases/logic_hooks.php&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="php"&gt;&amp;lt;?php
/**
 * logic_hooks.php — Cases module
 *
 * Hook registration order within each event is determined by the first
 * element of each entry (the position integer). Lower numbers run first.
 *
 * Format: array(position, label, file, class, method)
 */

$hook_version = 1;
$hook_array   = array();

// -----------------------------------------------------------------------------
// before_save
// -----------------------------------------------------------------------------
$hook_array[&amp;#39;before_save&amp;#39;][] = array( 3, &amp;#39;beforeSave&amp;#39;,        &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                      &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;beforeSave&amp;#39;,);
$hook_array[&amp;#39;before_save&amp;#39;][] = array( 4, &amp;#39;updateLog&amp;#39;,         &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                      &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;updateLog&amp;#39;,);
$hook_array[&amp;#39;before_save&amp;#39;][] = array( 5, &amp;#39;checkEmailAddress&amp;#39;, &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                      &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;checkEmailAddress&amp;#39;,);
$hook_array[&amp;#39;before_save&amp;#39;][] = array( 6, &amp;#39;checkVIP&amp;#39;,          &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                      &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;checkVIP&amp;#39;,);
$hook_array[&amp;#39;before_save&amp;#39;][] = array( 7, &amp;#39;checkGDPR&amp;#39;,         &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                      &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;checkGDPR&amp;#39;,);

// -----------------------------------------------------------------------------
// after_save
// -----------------------------------------------------------------------------
$hook_array[&amp;#39;after_save&amp;#39;][] = array( 3, &amp;#39;afterSave&amp;#39;,               &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                 &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;afterSave&amp;#39;,);
$hook_array[&amp;#39;after_save&amp;#39;][] = array( 4, &amp;#39;saveContactRelationship&amp;#39;, &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,                 &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;saveContactRelationship&amp;#39;,);

// -----------------------------------------------------------------------------
// after_relationship_add
// -----------------------------------------------------------------------------
$hook_array[&amp;#39;after_relationship_add&amp;#39;][] = array( 1, &amp;#39;checkVIP&amp;#39;,          &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,           &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;checkVIP&amp;#39;,);
$hook_array[&amp;#39;after_relationship_add&amp;#39;][] = array( 2, &amp;#39;compProductNotes&amp;#39;,  &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,           &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;compProductNotes&amp;#39;,);

// -----------------------------------------------------------------------------
// after_relationship_delete
// -----------------------------------------------------------------------------
$hook_array[&amp;#39;after_relationship_delete&amp;#39;][] = array( 1, &amp;#39;checkVIP&amp;#39;,       &amp;#39;custom/modules/Cases/Cases_Logic.php&amp;#39;,           &amp;#39;AutomatedCaseHandling&amp;#39;, &amp;#39;checkVIP&amp;#39;,);

// -----------------------------------------------------------------------------
// process_record
// -----------------------------------------------------------------------------
$hook_array[&amp;#39;process_record&amp;#39;][] = Array(1,&amp;#39;conditional_formatting&amp;#39;,&amp;#39;custom/modules/Cases/conditional_formatting.php&amp;#39;,&amp;#39;ConditionalFormatting&amp;#39;,&amp;#39;conditional_formatting&amp;#39;);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Not all numbering starts with 1 because I removed some old hooks and didn&amp;#39;t think to renumber until now, but that has no created issues for years.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Francesca&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33781?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2026 14:42:19 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:170cf34f-91c7-46a9-8297-01917c83687d</guid><dc:creator>Angel Magana</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33781?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi Francesca,&lt;/p&gt;
&lt;p&gt;Another thought that crosses my mind is that perhaps the QRR process didn&amp;#39;t pick up the definition.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you seeing a reference to the definition file in ./custom/modules/&amp;lt;Module&amp;gt;/Ext/LogicHooks/logichooks.ext.php ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33780?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2026 00:18:03 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4d059ac9-2a40-408d-9651-4c149566ad0e</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33780?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Thank you Angel, I double checked everything, including copy/paste names in searches in the code to make absolutely sure they are the same...&lt;span class="emoticon" data-url="https://sugarclub.sugarai.com/cfs-file/__key/system/emoji/1f937.svg" title="Shrug"&gt;&amp;#x1f937;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bizarre logic hook problem</title><link>https://sugarclub.sugarai.com/thread/33779?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2026 22:08:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:62e30b89-0459-4b87-af7a-53320c786a58</guid><dc:creator>Angel Magana</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33779?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8363/bizarre-logic-hook-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi Francesca,&lt;/p&gt;
&lt;p&gt;Yeah, something doesn&amp;#39;t add up. I would be equally puzzled as renaming things wouldn&amp;#39;t cause such problems, assuming everything lines up in the definition file, etc.&lt;/p&gt;
&lt;p&gt;Is it possible that the permissions on the files were changed when your renamed them? Other than that, the only other thing I can think of is the casing on the names...that is, the names might match, but the casing doesn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calculated Checkbox not setting as expected</title><link>https://sugarclub.sugarai.com/thread/33778?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2026 19:08:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:40e3ff23-f592-4107-b39c-2fc170ab5fdc</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33778?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8362/calculated-checkbox-not-setting-as-expected/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;That did it, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Calculated Checkbox not setting as expected</title><link>https://sugarclub.sugarai.com/thread/8362?ContentTypeID=0</link><pubDate>Wed, 01 Apr 2026 00:04:17 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:10af2213-2b68-42ef-8a1a-fb3b128834ba</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8362?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8362/calculated-checkbox-not-setting-as-expected/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Sugar Ent 25.1 on site&lt;br /&gt;I have a calculated checkbox field with formula&lt;/p&gt;
&lt;p&gt;greaterThan(&lt;br /&gt;&amp;nbsp; &amp;nbsp;count(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;related($aupub_author_publications_contacts,&amp;quot;name&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; )&lt;br /&gt;,0)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The formula is acceptable, the related portion is built in Studio via the usual selection of Related, the relationship link is correct.&lt;/p&gt;
&lt;p&gt;Yet when I add an Author Publication the checkbox is not set&lt;/p&gt;
&lt;p&gt;Any thoughts on how to debug?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;FrancescaS&lt;/p&gt;</description></item><item><title>RE: Calculated Checkbox not setting as expected</title><link>https://sugarclub.sugarai.com/thread/33777?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2026 11:35:36 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1001bab3-ba7a-4cf7-8c5e-aeca9f95ad49</guid><dc:creator>Chris Raffle</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33777?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8362/calculated-checkbox-not-setting-as-expected/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi &lt;a href="/members/francescas"&gt;Francesca&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;When using count(), you only need to specify the relationship link for the formula to properly assess whether any related records exist. Try using the following formula instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;greaterThan(
    count(
        $aupub_author_publications_contacts
    ),
    0
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: demobuilder.sugarcrmdemo.com's File manager no longer let's me edit files</title><link>https://sugarclub.sugarai.com/thread/33764?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2026 09:23:15 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a4bd15fb-8d56-4fdb-a82b-461efa2c6359</guid><dc:creator>Miruna Craciun</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33764?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8353/demobuilder-sugarcrmdemo-com-s-file-manager-no-longer-let-s-me-edit-files/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Issue was addressed last night, thanks for your patience!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>demobuilder.sugarcrmdemo.com's File manager no longer let's me edit files</title><link>https://sugarclub.sugarai.com/thread/8353?ContentTypeID=0</link><pubDate>Sun, 15 Mar 2026 22:36:48 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4070a16c-affa-4116-a91a-2e43f87d54fa</guid><dc:creator>Patrick McQueen</dc:creator><slash:comments>6</slash:comments><comments>https://sugarclub.sugarai.com/thread/8353?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8353/demobuilder-sugarcrmdemo-com-s-file-manager-no-longer-let-s-me-edit-files/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;What happened to demobuilder.sugarcrmdemo.com&amp;#39;s File manager?&lt;br /&gt;The interface up to a few days ago allowed me to open a file and edit it right there in the File manager interface. Now, files opened display the file content, but do not allow me to edit the content.&lt;br /&gt;The ability to edit file content was a essential for debugging. Was this an intentional removal of functionality? Is it a defect? Is it something on my end I need to change?&lt;/p&gt;
&lt;p&gt;[mention:1ec9289a19b7489188e562f4d7c7d4ac:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp;&lt;/p&gt;</description></item><item><title>RE: demobuilder.sugarcrmdemo.com's File manager no longer let's me edit files</title><link>https://sugarclub.sugarai.com/thread/33762?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2026 23:36:44 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:14026307-6137-4a2f-a077-9ee5f60bd7bc</guid><dc:creator>Keith Neuendorff</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33762?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8353/demobuilder-sugarcrmdemo-com-s-file-manager-no-longer-let-s-me-edit-files/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Yes, mine is working now too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: demobuilder.sugarcrmdemo.com's File manager no longer let's me edit files</title><link>https://sugarclub.sugarai.com/thread/33761?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2026 22:45:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d92aed20-cb2f-45dd-9487-5bc67ada6301</guid><dc:creator>Patrick McQueen</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33761?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8353/demobuilder-sugarcrmdemo-com-s-file-manager-no-longer-let-s-me-edit-files/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;a href="/members/keithneuendorff345962"&gt;Keith Neuendorff&lt;/a&gt;&amp;nbsp;Mine is working as expected today. Is yours back to working as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: demobuilder.sugarcrmdemo.com's File manager no longer let's me edit files</title><link>https://sugarclub.sugarai.com/thread/33760?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2026 22:44:57 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7dadfeaf-d86b-4058-a8d8-aafe8073a318</guid><dc:creator>Patrick McQueen</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33760?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8353/demobuilder-sugarcrmdemo-com-s-file-manager-no-longer-let-s-me-edit-files/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;a href="/members/mirunacraciun"&gt;Miruna Craciun&lt;/a&gt;&amp;nbsp;Not sure if you did anything, but this looks to be back to working as expected today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Are you cleaning up your Emails/Email Addresses?</title><link>https://sugarclub.sugarai.com/thread/8354?ContentTypeID=0</link><pubDate>Mon, 16 Mar 2026 16:53:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b4cc23fe-c711-41f6-b5de-ecd8869f9cf9</guid><dc:creator>Francesca Shiekh</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/8354?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/dev-club/f/questions-answers/8354/are-you-cleaning-up-your-emails-email-addresses/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;In 2011, when I was starting off with Sugar, I drew a sketch of the back-end tables that make up an Email.&lt;/p&gt;
&lt;p&gt;Fast Forward (and it has been very fast) to 2026 and I asked ClaudeAI to take that overused coffee-stained sketch and draw it out for me. &lt;br /&gt;I thought I would share it here, together with some thoughts on a cleanup effort I&amp;#39;ve been working through hoping others will share their cleanup journey too.&lt;br /&gt;&lt;br /&gt;We are on-site, and space has never been much of an issue, but that&amp;#39;s not a good reason to let the data sit unchecked and I found some &amp;quot;orphans&amp;quot; around the Emails module.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/54/emails.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I found:&lt;/p&gt;
&lt;p&gt;1) I have&amp;nbsp;quite a few orphan email addresses with no related Emails or beans&lt;/p&gt;
&lt;p&gt;I believe these come from Spam emails that reached our Inbound email addresses. &lt;br /&gt;The Case is deleted, the corresponding Email is deleted,&amp;nbsp; but the email address remains, with no related beans or Emails.&lt;/p&gt;
&lt;p&gt;2) I have quite a few orphan Emails where the&amp;nbsp;customer&amp;#39;s email address/es are not linked to any Beans&lt;br /&gt;These are most likely from a custom inbound_email address that does not create Cases but is parsed to create Leads. &lt;br /&gt;The Lead is deleted as Spam/useless but the email address and corresponding Email remain.&lt;br /&gt;Clearly such orphaned emails are not ever visible on any record unless you go directly to the Emails module (and who does that?)&lt;br /&gt;&lt;br /&gt;3) I have a lot of email addresses that were marked invalid over time and should probably be deleted, but if I do that then I should delete the Email too, or I&amp;#39;ll end up with Emails with no To/From address.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you tried doing some cleanup in this area of your stored data?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What have you found?&amp;nbsp;And how are you going about cleaning things up?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FrancescaS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item></channel></rss>