<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Export lead records including comment log</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/6591/export-lead-records-including-comment-log</link><description>Hello SugarClub. 
 
 Does anyone know if its possible to export my records in the lead module including the comment logs. At this moment I have 11 users who each have 7 filters in their lead module. 
 
 Im looking to export all records as shown in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Export lead records including comment log</title><link>https://sugarclub.sugarcrm.com/thread/29549?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 06:11:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5733f1a1-230d-4a33-93c3-1580f908abdc</guid><dc:creator>Oliver Kaerhoeg</dc:creator><description>&lt;p&gt;Great! Thank you so much for this.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export lead records including comment log</title><link>https://sugarclub.sugarcrm.com/thread/29338?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 14:43:17 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cdcaeaae-99d3-40de-8e83-5516cdc1d201</guid><dc:creator>Andre Serrazina</dc:creator><description>&lt;p&gt;Oh great! this is actually a better idea &lt;a href="/members/rifa"&gt;Chris Raffle&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export lead records including comment log</title><link>https://sugarclub.sugarcrm.com/thread/29337?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 14:40:09 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4ea215e4-03c7-4bbf-9569-1da91db9b6c9</guid><dc:creator>Chris Raffle</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/oliverkaerhoeg331908"&gt;Oliver Kaerhoeg&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;If you or your company does not have expertise to leverage the API mentioned in&amp;nbsp;&lt;a href="/members/aserrazina"&gt;Andre Serrazina&lt;/a&gt;&amp;#39;s suggestion, another alternative is to create a custom query in Sugar&amp;#39;s Advanced Reports module. Once a custom query is generated, you can export out the results of the comment log entries for associated leads. Here is a query that will give you all comment log entries related to existing leads in your CRM:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sql"&gt;SELECT 
    cl1.date_entered, 
    u1.user_name created_by, 
    cl1.entry, 
    clr1.record_id lead_id 
FROM 
    commentlog cl1 
INNER JOIN 
    commentlog_rel clr1 ON cl1.id = clr1.commentlog_id 
INNER JOIN 
    leads l1 ON clr1.record_id = l1.id 
LEFT JOIN 
    users u1 ON cl1.created_by = u1.id 
WHERE 
    cl1.deleted = 0 AND clr1.deleted = 0 AND l1.deleted = 0 AND clr1.module = &amp;#39;Leads&amp;#39; 
ORDER BY 
    clr1.record_id ASC;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that the comment log entry text will contain abstract references if users mention another user or record in the comment log text. For instance, if someone tagged another user in the comment log, the text will have &amp;quot;&lt;span&gt;@[Users:&amp;lt;users database GUID&amp;gt;]&amp;quot; in place of where the visual comment log would show that user&amp;#39;s name. The same syntax is followed when linking other records in the comment log (e.g. @[&amp;lt;module name&amp;gt;:&amp;lt;record database GUID&amp;gt;]).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chris&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export lead records including comment log</title><link>https://sugarclub.sugarcrm.com/thread/29333?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 10:46:31 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:10a34c50-8c84-4e44-a8f3-2ec900e31749</guid><dc:creator>Andre Serrazina</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/oliverkaerhoeg331908"&gt;Oliver Kaerhoeg&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Exporting or reporting on the Comment Log is currently not available out of the box in the Sugar Graphic user Interface.&amp;nbsp;&lt;br /&gt;This is documented in the following open ideas:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://portal.sugarondemand.com/#supp_Bugs/"&gt;https://portal.sugarondemand.com/#supp_Bugs/&lt;span&gt;82072&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://portal.sugarondemand.com/#supp_Bugs/83295"&gt;https://portal.sugarondemand.com/#supp_Bugs/83295&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If in your&amp;nbsp;team you have a resource experienced with API&amp;#39;s you could leverage the &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.2/Integration/Web_Services/REST_API/"&gt;Sugar REST API&lt;/a&gt; to&amp;nbsp;retrieve and export this data.&amp;nbsp;&lt;br /&gt;With the following endpoint, you can retrieve the comment log of a specific Lead record.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;https://&amp;lt;SugarURL&amp;gt;/rest/v11_20/Leads/&amp;lt;LeadID&amp;gt;/link/commentlog_link&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know if this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andr&amp;eacute;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>