<?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>Sugar Serve Answers &amp;amp; Best Practices - Recent Threads</title><link>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to have rich-text field for Description in Tickets and Notes</title><link>https://sugarclub.sugarai.com/thread/33798?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2026 09:48:58 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:934238e2-3295-4fd7-b730-16b117541f23</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33798?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8369/how-to-have-rich-text-field-for-description-in-tickets-and-notes/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello &lt;a href="/members/samuelmallare348035"&gt;Samuel Mallare&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Just to clarify: TinyMCE is already included in Sugar, so you simply need to update the vardef of the target field to use it.&lt;/p&gt;
&lt;p&gt;For example, for the Cases description field,&amp;nbsp;creating this file&amp;nbsp;will be enough.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;./custom/Extension/modules/Cases/Ext/Vardefs/tinymce_description.php&lt;br /&gt;&lt;br /&gt;Content:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="php"&gt;  &amp;lt;?php
$dictionary[&amp;#39;Case&amp;#39;][&amp;#39;fields&amp;#39;][&amp;#39;description&amp;#39;][&amp;#39;type&amp;#39;] = &amp;#39;htmleditable_tinymce&amp;#39;;
$dictionary[&amp;#39;Case&amp;#39;][&amp;#39;fields&amp;#39;][&amp;#39;description&amp;#39;][&amp;#39;dbType&amp;#39;] = &amp;#39;longtext&amp;#39;;
$dictionary[&amp;#39;Case&amp;#39;][&amp;#39;fields&amp;#39;][&amp;#39;description&amp;#39;][&amp;#39;len&amp;#39;] = &amp;#39;4294967295&amp;#39;;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I imagine you may already know this, but wanted to leave it here for clarity.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Andr&amp;eacute;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to have rich-text field for Description in Tickets and Notes</title><link>https://sugarclub.sugarai.com/thread/8369?ContentTypeID=0</link><pubDate>Mon, 13 Apr 2026 18:18:12 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bac62c5f-60ff-4181-9496-9ad5220a4eaf</guid><dc:creator>Samuel Mallare</dc:creator><slash:comments>3</slash:comments><comments>https://sugarclub.sugarai.com/thread/8369?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8369/how-to-have-rich-text-field-for-description-in-tickets-and-notes/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;In Tickets and Notes, the Description field is plain text.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s a good way to convert it to rich text so we can simply copy-and-paste images/videos?&lt;/p&gt;</description></item><item><title>RE: How to have rich-text field for Description in Tickets and Notes</title><link>https://sugarclub.sugarai.com/thread/33797?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2026 06:38:32 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fea70105-02db-4cb8-9192-fc45ddf4bb38</guid><dc:creator>Samuel Mallare</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33797?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8369/how-to-have-rich-text-field-for-description-in-tickets-and-notes/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Thank you, Andre. Much appreciated! I&amp;#39;ll check this out.&lt;/p&gt;
&lt;p&gt;I was able to google that before. I&amp;#39;m hoping there&amp;#39;s a simpler way. I hope Sugar can come up with a native rich-text field&amp;nbsp; without any external integration or add-on like TinyMCE. This is a basic need.&lt;/p&gt;
&lt;p&gt;Anyway, thank you again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have rich-text field for Description in Tickets and Notes</title><link>https://sugarclub.sugarai.com/thread/33795?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2026 16:07:31 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c4232d76-a8b6-460c-98d2-3baa014d5ed3</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33795?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8369/how-to-have-rich-text-field-for-description-in-tickets-and-notes/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello &lt;a href="/members/samuelmallare348035"&gt;Samuel Mallare&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The simplest approach would be to convert your description fields to htmleditable_tinymce, as described in the following link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://support.sugarai.com/documentation/sugar_developer/sugar_developer_guide_25.2/architecture/tinymce/"&gt;support.sugarai.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With this, you can paste images directly. For videos, unfortunately you would need to use the file upload button.&lt;/p&gt;
&lt;p&gt;Let me know if this helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Andr&amp;eacute;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: help creating BP to email contact on cases set to "Customer" for 14 days</title><link>https://sugarclub.sugarai.com/thread/33776?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2026 18:22:15 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2a3c26c6-9451-4b46-b58a-9621ec49f643</guid><dc:creator>Elisabeth Hunt</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33776?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8360/help-creating-bp-to-email-contact-on-cases-set-to-customer-for-14-days/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I said to my colleague &amp;quot;This guy Chris is 100% going to answer&amp;quot; and sure enough... thanks dude!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>help creating BP to email contact on cases set to "Customer" for 14 days</title><link>https://sugarclub.sugarai.com/thread/8360?ContentTypeID=0</link><pubDate>Mon, 30 Mar 2026 15:21:32 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8240a968-9ba8-435f-9722-e59c6731bb32</guid><dc:creator>Elisabeth Hunt</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8360?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8360/help-creating-bp-to-email-contact-on-cases-set-to-customer-for-14-days/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;When we reply to a customer we set the case status to &amp;quot;Customer&amp;quot;.&amp;nbsp; I want to create a BP that&lt;/p&gt;
&lt;p&gt;- checks if a case has been at customer for 14 days&lt;/p&gt;
&lt;p&gt;- sends an email to the primary contact saying &amp;quot;hey, if we don&amp;#39;t hear back in 7 days, we will close this case&amp;quot;&lt;/p&gt;
&lt;p&gt;- closes the case if it is still at customer after those last 7 days&lt;/p&gt;
&lt;p&gt;I&amp;#39;m struggling with the entire thing.&amp;nbsp; If a case goes to customer, and I start the timer, then the person replies (which automatically changes the status to &amp;quot;Pending not new&amp;quot;), I&amp;#39;d need the counter to start over.&amp;nbsp; And if the initial 14 days pass, and then the person replies, I don&amp;#39;t want the case to be closed after the next 7 days.&lt;/p&gt;
&lt;p&gt;Help?&lt;/p&gt;</description></item><item><title>RE: help creating BP to email contact on cases set to "Customer" for 14 days</title><link>https://sugarclub.sugarai.com/thread/33774?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2026 20:22:33 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:61306b5d-b57c-46a0-b3d6-66deaa19dbe2</guid><dc:creator>Chris Raffle</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33774?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8360/help-creating-bp-to-email-contact-on-cases-set-to-customer-for-14-days/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi &lt;a href="/members/elisabethhunt330195"&gt;Elisabeth&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;The best way to handle these &amp;#39;if-then-else&amp;#39; scenarios in SugarBPM is with event-based gateways. An event-based gateway allows you to define 2 or more scenarios at an inflection point of your process and which ever scenario happens first is the path the process will take. Based on your description, the process should look something like this:&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/40/pastedimage1774901326231v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;With each event-based gateway, they are either waiting for the specific period of inactivity to expire or for any status change on the case (to cover for scenarios where an agent manually updates the case status, the customer replies, etc.). If the status changes while it is waiting for the wait timer expiration, then the process immediately ends. Then if the case later returns to a &amp;#39;Customer&amp;#39; status, it&amp;nbsp;kicks off a new process from the beginning.&lt;/p&gt;
&lt;p&gt;You could design this process to be open from the time it first enters a &amp;#39;Customer&amp;#39; status until its eventual closure, but I recommend keeping processes with wait timers and receive message events as succinct as possible. These types of processes can add overhead processing time on the backend when there are a large number of open processes to parse.&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: Report on dashboard - limit to 1 line</title><link>https://sugarclub.sugarai.com/thread/33763?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2026 09:10:32 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6ad27d13-51b2-478a-bddc-76f8331c70dd</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33763?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8346/report-on-dashboard---limit-to-1-line/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thanks for your answer,&lt;br /&gt;Unfortunately I&amp;#39;m not a partner but a client&amp;#39;s administrator. So I don&amp;#39;t touche code &lt;span class="emoticon" data-url="https://sugarclub.sugarai.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Report on dashboard - limit to 1 line</title><link>https://sugarclub.sugarai.com/thread/8346?ContentTypeID=0</link><pubDate>Mon, 02 Mar 2026 11:13:11 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7d12ce7e-e456-40d7-8e35-1864cfe40373</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8346?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8346/report-on-dashboard---limit-to-1-line/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;If I use a report in a dashboard and one of the item as a long value, the item will create a large line because the value is fully displayed.&lt;br /&gt;&lt;br /&gt;For exemple :&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/40/pastedimage1772449103754v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately I can&amp;#39;t use a viewlist, which limits to 1 line.&lt;br /&gt;&lt;br /&gt;Do you know if there is a way to set that up so it displays on 1 line only ?&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;</description></item><item><title>RE: Report on dashboard - limit to 1 line</title><link>https://sugarclub.sugarai.com/thread/33745?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2026 17:59:39 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cea1f469-7cc0-41a7-96e4-2155b350a012</guid><dc:creator>Angel Magana</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33745?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8346/report-on-dashboard---limit-to-1-line/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi Yves,&lt;/p&gt;
&lt;p&gt;I believe I&amp;#39;ve found a solution for you, but it requires a minor code customization. In essence, the formatting for that view needs to be altered a slight bit in order to cause it to only use one line and that would be done through CSS.&lt;/p&gt;
&lt;p&gt;The one issue, though, is that this change will also alter the behavior of Rows and Columns reports, as the dashlet in your screenshot is effectively using the same view. In other words, that dashlet and the Reports module are intertwined with each other and you can&amp;#39;t easily alter one without altering the other.&lt;/p&gt;
&lt;p&gt;To apply the change, you&amp;#39;ll need to create a file named custom.less and add the following to it:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;.dataTablePlaceholder td.wrap-report-text {&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;.dataTablePlaceholder td.wrap-report-text .ellipsis_inline {&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;.dataTable td.wrap-report-text {&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;.dataTable td.wrap-report-text .ellipsis_inline {&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Save the custom.less file to ./custom/themes and then execute a Quick Repair and Rebuild and that should do the trick.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "+" button to duplicate a field</title><link>https://sugarclub.sugarai.com/thread/33654?ContentTypeID=1</link><pubDate>Wed, 21 Jan 2026 15:01:22 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:123c1714-9ee7-4451-9f87-a7470e4e6e4c</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33654?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8317/button-to-duplicate-a-field/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Damn, that is what i was affraid of. But not surprised.&lt;br /&gt;Thanks for the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>"+" button to duplicate a field</title><link>https://sugarclub.sugarai.com/thread/8317?ContentTypeID=0</link><pubDate>Tue, 20 Jan 2026 15:07:07 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3ac5ec00-7b4b-469d-9cf4-af6fa9a1844f</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8317?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8317/button-to-duplicate-a-field/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Good afternoon,&lt;br /&gt;&lt;br /&gt;I was wonedering if it was possible to have, let say a &amp;quot;Phone2&amp;quot; and some kind of &amp;quot;+&amp;quot; option to add a second field &amp;quot;Phone2&amp;quot; ?&lt;br /&gt;&lt;br /&gt;I tried to find that without success, so not sure if it is possible within the studio.&lt;br /&gt;&lt;br /&gt;thank your help&lt;/p&gt;</description></item><item><title>RE: "+" button to duplicate a field</title><link>https://sugarclub.sugarai.com/thread/33649?ContentTypeID=1</link><pubDate>Tue, 20 Jan 2026 15:23:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4b70fbd3-75fb-402a-ab16-827dbca93947</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33649?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8317/button-to-duplicate-a-field/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello &lt;a href="/members/yvesbourgarel332420"&gt;Yves Bourgarel&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p class="p1"&gt;The functionality you are describing is similar to what we have for email addresses. Email addresses are stored in a separate table, which allows multiple email addresses to be related to a single record (for example, an Account).&lt;/p&gt;
&lt;p class="p1"&gt;Phone numbers, on the other hand, are stored directly in the target table (or in the &amp;lt;module&amp;gt;_&lt;span class="s1"&gt;cstm&lt;/span&gt; table if the field is custom). &lt;br /&gt;Because of this, it is not possible to dynamically add multiple phone fields in the same way.&lt;/p&gt;
&lt;p class="p1"&gt;As a workaround, you could create an additional custom field (for example, &lt;span class="s1"&gt;phone_2_c&lt;/span&gt;) and then use a dependency so that this field is only displayed when certain criteria are met (for example, when a checkbox is selected).&lt;/p&gt;
&lt;p class="p1"&gt;However, this would be limited to a predefined number of phone fields and would not allow adding phone fields dynamically on the fly.&lt;/p&gt;
&lt;p class="p1"&gt;Would this approach work for your use case?&lt;/p&gt;
&lt;p class="p1"&gt;Best regards,&lt;/p&gt;
&lt;p class="p1"&gt;Andr&amp;eacute;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with custom query to extract email text?</title><link>https://sugarclub.sugarai.com/thread/33588?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2025 16:58:25 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:53eebe9f-6809-4601-987c-fde295d095f4</guid><dc:creator>Elisabeth Hunt</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33588?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8299/help-with-custom-query-to-extract-email-text/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;WOW, &lt;span&gt;Andr&amp;eacute;, thank you!!&amp;nbsp; Let me give this a shot!&lt;/span&gt;&lt;/p&gt;
&lt;div id="gtx-trans" style="left:48px;position:absolute;top:-20px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Help with custom query to extract email text?</title><link>https://sugarclub.sugarai.com/thread/8299?ContentTypeID=0</link><pubDate>Wed, 10 Dec 2025 14:38:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:db28d813-1eda-4bfa-8478-4b75137a1494</guid><dc:creator>Elisabeth Hunt</dc:creator><slash:comments>3</slash:comments><comments>https://sugarclub.sugarai.com/thread/8299?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8299/help-with-custom-query-to-extract-email-text/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;My support team interacts with customers via email through Sugar Serve.&amp;nbsp; I&amp;#39;d like to have a custom query where I could say &amp;quot;show me all emails between this specific support person and any customer in the last month&amp;quot; that would include the text of the emails (I am trying to extract this to feed to a LLM).&amp;nbsp; Can anyone help?&lt;/p&gt;</description></item><item><title>RE: Help with custom query to extract email text?</title><link>https://sugarclub.sugarai.com/thread/33587?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2025 16:51:11 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:74ed1efe-b79e-4fb6-be09-a901e1628c81</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33587?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8299/help-with-custom-query-to-extract-email-text/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello &lt;a href="/members/elisabethhunt330195"&gt;Elisabeth Hunt&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;While testing this locally I was using older demo data and overlooked an important detail.&lt;/p&gt;
&lt;p class="p1"&gt;In newer versions of Sugar, the fields that store the email body (&lt;span class="s1"&gt;description&lt;/span&gt; and &lt;span class="s1"&gt;description_html&lt;/span&gt;) are &lt;span class="s2"&gt;compressed and encoded&lt;/span&gt; to reduce database storage.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;As a result, when you export the CSV from the query, those two columns will &lt;span class="s2"&gt;not appear in readable form&lt;/span&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;They need to be decoded before the data can be used normally.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;To make this easy, I prepared a small Python script you can run on the .csv file after downloading it.&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;It reads your export and adds two new columns containing the &lt;span class="s2"&gt;&lt;b&gt;decoded&lt;/b&gt;&lt;/span&gt; text for &lt;span class="s1"&gt;description&lt;/span&gt; and &lt;span class="s1"&gt;description_html&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Here is the script:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="python"&gt;import base64
import zlib
import csv
import sys
import os

def decode_field(value):
    &amp;quot;&amp;quot;&amp;quot;Decode Base64 + raw DEFLATE fields. Return original value if decoding fails.&amp;quot;&amp;quot;&amp;quot;
    if not isinstance(value, str) or value.strip() == &amp;quot;&amp;quot;:
        return value
    try:
        raw = base64.b64decode(value)
        # -15 = raw DEFLATE (no headers)
        text = zlib.decompress(raw, -15).decode(&amp;quot;utf-8&amp;quot;, errors=&amp;quot;replace&amp;quot;)
        return text
    except Exception:
        return value

def main():
    # --- Handle missing argument ---
    if len(sys.argv) &amp;lt; 2:
        print(&amp;quot;Usage: python3 decode_custom_queries.py &amp;lt;input_file.csv&amp;gt;&amp;quot;)
        sys.exit(1)

    input_file = sys.argv[1]

    # --- Check if the file exists ---
    if not os.path.isfile(input_file):
        print(f&amp;quot;Error: File not found: {input_file}&amp;quot;)
        sys.exit(1)

    # --- Create output filename ---
    base, ext = os.path.splitext(input_file)
    output_file = f&amp;quot;{base}_decoded{ext}&amp;quot;

    # --- Process CSV ---
    with open(input_file, newline=&amp;quot;&amp;quot;, encoding=&amp;quot;utf-8&amp;quot;) as f_in:
        reader = csv.DictReader(f_in)
        fieldnames = reader.fieldnames + [&amp;quot;Description_decoded&amp;quot;, &amp;quot;description_html_decoded&amp;quot;]
        rows = []

        for row in reader:
            row[&amp;quot;Description_decoded&amp;quot;] = decode_field(row.get(&amp;quot;Description&amp;quot;))
            row[&amp;quot;description_html_decoded&amp;quot;] = decode_field(row.get(&amp;quot;description_html&amp;quot;))
            rows.append(row)

    # --- Write decoded file ---
    with open(output_file, &amp;quot;w&amp;quot;, newline=&amp;quot;&amp;quot;, encoding=&amp;quot;utf-8&amp;quot;) as f_out:
        writer = csv.DictWriter(f_out, fieldnames=fieldnames)
        writer.writeheader()
        writer.writerows(rows)

    print(f&amp;quot;Done! Decoded file saved as: {output_file}&amp;quot;)

if __name__ == &amp;quot;__main__&amp;quot;:
    main()&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="p1"&gt;To use the script, simply create a &lt;span class="s1"&gt;.py&lt;/span&gt; file with the content provided above.&lt;/p&gt;
&lt;p class="p1"&gt;Once the file is saved, you can run it from the command line with:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;% python3 decoder.py exportedFileFromSugar.csv&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;After it runs, you&amp;rsquo;ll see a message like:&lt;span class="s1"&gt;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Done! Decoded file saved as:&lt;span&gt;exportedFileFromSugar&lt;/span&gt;_decoded.csv&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;br /&gt;This new file will contain the same data as the original export, but with the email text fields fully decoded and human-readable.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Please let me know if you&amp;rsquo;re able to use it successfully or if you&amp;rsquo;d like any help.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Cheers,&lt;/p&gt;
&lt;p class="p1"&gt;Andr&amp;eacute;&lt;/p&gt;
&lt;p&gt;&lt;br /&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: Help with custom query to extract email text?</title><link>https://sugarclub.sugarai.com/thread/33586?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2025 15:05:05 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:23db1556-2c78-4d59-bb5b-af5167c50d5f</guid><dc:creator>Andre Serrazina</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33586?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8299/help-with-custom-query-to-extract-email-text/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello Elisabeth,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is an interesting request, thanks for sharing it.&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;Before building the query, the first step is confirming &lt;span class="s1"&gt;&lt;b&gt;where the communication content is actually stored&lt;/b&gt;&lt;/span&gt;. &lt;br /&gt;In Sugar, emails can originate from multiple places (inbound email, email-to-case, direct replies, etc.), so we want to be sure the messages you want to extract are indeed stored in the &lt;span class="s1"&gt;emails&lt;/span&gt; module and not, for example, in &lt;span class="s1"&gt;Case Notes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Assuming everything &lt;strong&gt;&lt;i&gt;is&lt;/i&gt; stored in the Emails module,&lt;/strong&gt; the tables you want to look in the database are:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;b&gt;emails&lt;/b&gt;&lt;/span&gt; &amp;ndash; main email metadata (ID, subject, dates, direction, etc.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;b&gt;emails_text&lt;/b&gt;&lt;/span&gt; &amp;ndash; this stores the actual email body and header fields&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="p1"&gt;With this in mind, you can build a query to retrieve all emails where your support representative&amp;rsquo;s email address appears as the sender, and then filter them by date (e.g., the last 30 days). Once you have that dataset, you can further&amp;nbsp;remove internal communications by filtering the &lt;span class="s1"&gt;to_addrs&lt;/span&gt;&amp;nbsp;field to include only customer domains.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;br /&gt;This could be an example query to get you started:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;pre class="ui-code" data-mode="sql"&gt;SELECT 
    e.id,
    e.name AS subject,
    e.date_sent,
    et.from_addr,
    et.to_addrs,
    et.description,
    et.description_html
FROM emails e
INNER JOIN emails_text et 
    ON e.id = et.email_id
WHERE 
    et.from_addr LIKE &amp;#39;%support_person@yourcompany.com%&amp;#39;
    AND e.date_sent &amp;gt;= DATE_SUB(NOW(), INTERVAL 1 MONTH)
    AND e.deleted = 0
ORDER BY e.date_sent DESC;&lt;/pre&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;br /&gt;&lt;br /&gt;Let me know if this helps.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Cheers,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Andr&amp;eacute;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can a process definition be used to link a case to a customer, it doesn't need to be dynamic, just a fixed customer every time</title><link>https://sugarclub.sugarai.com/thread/33584?ContentTypeID=1</link><pubDate>Wed, 10 Dec 2025 11:50:58 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6abe6ddf-ca07-4376-85e8-69483129edf3</guid><dc:creator>Chris Raffle</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33584?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8298/can-a-process-definition-be-used-to-link-a-case-to-a-customer-it-doesn-t-need-to-be-dynamic-just-a-fixed-customer-every-time/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi &lt;a href="/members/samcody333823"&gt;Sam&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe it is possible to modify a parent relationship on a record with SugarBPM&amp;#39;s native features. Here are the following options to consider:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You can implement&amp;nbsp;a custom logic hook to handle this scenario. Custom logic hooks require Sugar development expertise. We can provide you a quote on this effort if you don&amp;#39;t have a developer on-hand. The drawback to this solution is that it requires a developer to maintain any changes or fixes over time.&lt;/li&gt;
&lt;li&gt;We sell a plugin, &lt;a href="https://www.upsertconsulting.com/plugins/bpm-essentials/?utm_source=sugarclub&amp;amp;utm_medium=post&amp;amp;utm_campaign=setrelationship"&gt;Upsert BPM Essentials&lt;/a&gt;, that adds often-requested features to SugarBPM so that administrators have direct control over processes that would otherwise require custom logic hooks to achieve. We do not currently cover your requested use case in the plugin; we&amp;nbsp;are willing to add the feature if you purchase a subscription. If you would like to discuss this option in more detail&amp;nbsp;and go through a demo of the plugin, please reach out via our website.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Can a process definition be used to link a case to a customer, it doesn't need to be dynamic, just a fixed customer every time</title><link>https://sugarclub.sugarai.com/thread/8298?ContentTypeID=0</link><pubDate>Wed, 10 Dec 2025 09:53:23 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:75ef3060-7f48-4d0c-8b75-84418a58b0d5</guid><dc:creator>Sam Cody</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/8298?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8298/can-a-process-definition-be-used-to-link-a-case-to-a-customer-it-doesn-t-need-to-be-dynamic-just-a-fixed-customer-every-time/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We have a PD that only triggers when certain cases are created, we want to automatically relate the case to a fixed customer account, is this possible?&lt;/p&gt;</description></item><item><title>Action buton to open a built url</title><link>https://sugarclub.sugarai.com/thread/8275?ContentTypeID=0</link><pubDate>Tue, 04 Nov 2025 09:46:29 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:64001295-f385-4bd8-9805-eaaa2de2bb6e</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8275?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8275/action-buton-to-open-a-built-url/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Good morning,&lt;br /&gt;&lt;br /&gt;I have fields on the contact module that open an url built from values from the contact.&lt;br /&gt;For example : www.myurl+{&lt;em&gt;SugarContactnumber}&lt;/em&gt;.com&lt;br /&gt;&lt;br /&gt;In order to make it cleaner, i would like the link to appear as a button.&lt;br /&gt;However when creating a button with an action &amp;quot;open url&amp;quot;, i can make a calculated field, but not build one as&amp;nbsp;I did before.&lt;br /&gt;&lt;br /&gt;Do you guys know if it is possible from a button ?&lt;br /&gt;&lt;br /&gt;thanks&lt;/p&gt;</description></item><item><title>RE: Action buton to open a built url</title><link>https://sugarclub.sugarai.com/thread/33506?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 08:43:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:470e5c08-5092-4bb5-8a89-1ee4a9ef14b5</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33506?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8275/action-buton-to-open-a-built-url/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;it was that simple yes.&lt;br /&gt;Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Action buton to open a built url</title><link>https://sugarclub.sugarai.com/thread/33501?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 20:13:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d761e023-f259-406c-a4ae-acd4b0a1f48e</guid><dc:creator>Brenda Rossetto</dc:creator><slash:comments>1</slash:comments><comments>https://sugarclub.sugarai.com/thread/33501?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8275/action-buton-to-open-a-built-url/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi Yves, if I am understanding correctly, you should be able to do this with an Action Button like this:&lt;br /&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/40/pastedimage1762287194692v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does that solve your question, or is there more to it?&lt;/p&gt;
&lt;p&gt;-Brenda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>AI agent provide initial response to incoming cases?</title><link>https://sugarclub.sugarai.com/thread/8263?ContentTypeID=0</link><pubDate>Wed, 22 Oct 2025 19:14:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7f4d4105-449a-4305-b9fb-2382cfc11ed4</guid><dc:creator>Elisabeth Hunt</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/8263?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8263/ai-agent-provide-initial-response-to-incoming-cases/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m interested in having an AI agent provide an initial answer to incoming cases. Anyone doing this?&amp;nbsp; Sugar Intelligence seems to work great with accounts and opportunities, but it only seems to summarize cases.&amp;nbsp; I&amp;#39;d love to have an agent that could respond to cases for my team, hopefully providing a useful answer before any of my humans even see the case.&lt;/p&gt;</description></item><item><title>Business rule return error message</title><link>https://sugarclub.sugarai.com/thread/8216?ContentTypeID=0</link><pubDate>Tue, 02 Sep 2025 07:47:36 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9396acb9-caa3-4926-933b-913da66109b7</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>2</slash:comments><comments>https://sugarclub.sugarai.com/thread/8216?ContentTypeID=0</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8216/business-rule-return-error-message/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Good morning,&lt;br /&gt;&lt;br /&gt;I created a business rule that looks like this :&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/40/pastedimage1756798761312v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Long story short, i want value to change depending on the subject title when a case is created.&lt;br /&gt;&lt;br /&gt;Then, in a BPM, i added this business rule under the step &amp;quot;Assignation en fonction du titre&amp;quot;.&lt;br /&gt;Finaly, if the a case went through one the conditions, it has to go to the &amp;quot;End Event #1&amp;quot;, otherwise, it will follow another step.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:375px;max-width:500px;" src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/40/pastedimage1756798877123v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;However, i keep getting an error message.&lt;br /&gt;&lt;br /&gt;What did i do wrong ?&lt;br /&gt;I suspect something about the last line in the business rule ?&lt;br /&gt;&lt;br /&gt;Thanks for your help&lt;/p&gt;</description></item><item><title>RE: Business rule return error message</title><link>https://sugarclub.sugarai.com/thread/33299?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 06:58:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2f97c5e1-210a-40c9-9500-41e95c10dbca</guid><dc:creator>Yves Bourgarel</dc:creator><slash:comments>0</slash:comments><comments>https://sugarclub.sugarai.com/thread/33299?ContentTypeID=1</comments><wfw:commentRss>https://sugarclub.sugarai.com/explore/help-forums/serve/f/sugar-serve-questions/8216/business-rule-return-error-message/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;It worked !&amp;nbsp;&lt;br /&gt;Thanks, i knew my last line was shady&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>