<?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>Adding an &amp;quot;older than x days&amp;quot; filter</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/1439/adding-an-older-than-x-days-filter</link><description>Dear all, I&amp;#39;m curious if any of you ever came across a customer needing to filter his records based on an &amp;quot;older than x days&amp;quot; condition and how you solved it? Typical example: Opportunities with close dates older than 7 days, last interaction older than</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/20631?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 14:50:52 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:36cf7736-82e6-4015-a576-25ecaa1dabef</guid><dc:creator>Rodrigo Manara</dc:creator><description>&lt;p&gt;I have tried this today and I am not been able to display the extra input to select datetime&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16198?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 11:58:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6bb608cb-ff33-485b-b0f4-8442e341be8d</guid><dc:creator>Brad Foster</dc:creator><description>&lt;p&gt;I&amp;#39;ve added exactly this filter myself, and one to get exactly N days ago.&amp;nbsp; Here is a step by step guide.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Warning - this changes a couple of core files so you may need to make the changes again after any upgrade.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;1. First add the language string to the reports module.&lt;/p&gt;&lt;p&gt;custom/extension/modules/Reports/ext/lang/en_us.lang.php&lt;/p&gt;&lt;pre style="color:#a9b7c6;background-color:#2b2b2b;font-size:7.0pt;"&gt;&lt;pre style="font-size:7.0pt;"&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$mod_strings&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;[&lt;/span&gt;&lt;span style="color: #6a8759; background-color: #232525;"&gt;'LBL_BEFORE_N_DAYS'&lt;/span&gt;&lt;span style="background-color: #232525;"&gt;] = &lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt;&amp;#39;Before last # Days&amp;#39;&lt;/span&gt;&lt;span style="background-color:#232525;color:#cc7832;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#9876aa;"&gt;$mod_strings&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style="color: #6a8759;"&gt;'LBL_N_DAYS_AGO'&lt;/span&gt;&lt;span&gt;] = &lt;/span&gt;&lt;span style="color:#6a8759;"&gt;&amp;#39;# Days Ago&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;p&gt;2. In modules/Reports/templates/templates_modules_def_js.php add these lines&lt;/p&gt;&lt;pre style="color:#a9b7c6;background-color:#2b2b2b;font-size:7.0pt;"&gt;qualifiers[qualifiers.length] = {name:&amp;#39;tp_before_n_days&amp;#39;,value:&amp;#39;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;&amp;lt;?php echo &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$mod_strings&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;[&lt;/span&gt;&lt;span style="color: #6a8759; background-color: #232525;"&gt;'LBL_BEFORE_N_DAYS'&lt;/span&gt;&lt;span style="background-color: #232525;"&gt;]&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;; &lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;?&amp;gt;&lt;/span&gt;&amp;#39;};&lt;br /&gt;qualifiers[qualifiers.length] = {name:&amp;#39;tp_n_days_ago&amp;#39;,value:&amp;#39;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;&amp;lt;?php echo &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$mod_strings&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;[&lt;/span&gt;&lt;span style="color: #6a8759; background-color: #232525;"&gt;'LBL_N_DAYS_AGO'&lt;/span&gt;&lt;span style="background-color: #232525;"&gt;]&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;; &lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;?&amp;gt;&lt;/span&gt;&amp;#39;};&lt;/pre&gt;&lt;p&gt;3. Copy &lt;span&gt;include/generic/SugarWidgets/SugarWidgetFielddatetime.php to&amp;nbsp;&lt;/span&gt;custom/include/generic/SugarWidgets/SugarWidgetFielddatetime.php&lt;/p&gt;&lt;p&gt;Add these 2 functions to your new file -&amp;nbsp;&lt;span&gt;custom/include/generic/SugarWidgets/SugarWidgetFielddatetime.php&lt;/span&gt;&lt;/p&gt;&lt;pre style="color:#a9b7c6;background-color:#2b2b2b;font-size:7.0pt;"&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;function &lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;queryFilterTP_before_n_days&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$days &lt;/span&gt;&lt;span style="background-color:#232525;"&gt;= &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;[&lt;/span&gt;&lt;span style="color: #6a8759; background-color: #232525;"&gt;'input_name0'&lt;/span&gt;&lt;span style="background-color: #232525;"&gt;] - &lt;/span&gt;&lt;span style="color:#6897bb;background-color:#232525;"&gt;1&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$begin &lt;/span&gt;&lt;span style="background-color:#232525;"&gt;= &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$this&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;now&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;()-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt;&amp;quot;-10 years&amp;quot;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;)-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get_day_begin&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;()&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$end &lt;/span&gt;&lt;span style="background-color:#232525;"&gt;= &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$this&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;now&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;()-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt;&amp;quot;-&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$days&lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt; days&amp;quot;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;)-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get_day_begin&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;()&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;return &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$this&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get_start_end_date_filter&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;, &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$begin&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;, &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$end&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;)&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;function &lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;queryFilterTP_n_days_ago&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$days &lt;/span&gt;&lt;span style="background-color:#232525;"&gt;= &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;[&lt;/span&gt;&lt;span style="color: #6a8759; background-color: #232525;"&gt;'input_name0'&lt;/span&gt;&lt;span style="background-color: #232525;"&gt;]&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;font-weight:bold;"&gt;return &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$this&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;queryDay&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$layout_def&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;, &lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$this&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;now&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;()-&amp;gt;&lt;/span&gt;&lt;span style="color:#ffc66d;background-color:#232525;"&gt;get&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;(&lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt;&amp;quot;-&lt;/span&gt;&lt;span style="color:#9876aa;background-color:#232525;"&gt;$days&lt;/span&gt;&lt;span style="color:#6a8759;background-color:#232525;"&gt; day&amp;quot;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;))&lt;/span&gt;&lt;span style="color:#cc7832;background-color:#232525;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color:#232525;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;4. Repair and rebuild.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16197?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 17:19:15 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:04d317fc-07db-4782-996e-da73e838d424</guid><dc:creator>Constantine Shpikat</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/damien.pochon_4000_its4u.lu"&gt;Damien Pochon&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;There is a new filter operators like &amp;quot;next x days&amp;quot; or &amp;quot;last x days&amp;quot;&amp;nbsp;for Date field in our last project. That was done with custom&amp;nbsp;logic for &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier, monospace;"&gt;filter-rows&lt;/span&gt; view and custom&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier, monospace;"&gt;fixForFilter&lt;/span&gt; method in overridden class &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier, monospace;"&gt;CustomSugarFieldDatetime&lt;/span&gt; which based on the operator in filter will add certain &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier, monospace;"&gt;where&lt;/span&gt; condition for &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier, monospace;"&gt;SugarQuery&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;It will work in list and dashlets but not in reports though.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Let me know if you need details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16196?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 07:38:49 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5b080f9b-fb74-4a51-a20a-9b9c782130a4</guid><dc:creator>Damien Pochon</dc:creator><description>&lt;p&gt;Hi C&amp;eacute;dric,&lt;/p&gt;&lt;p&gt;Interesting approach, I had not thought about enriching the date time field. I&amp;#39;ll check with the team!&lt;/p&gt;&lt;p&gt;A bient&amp;ocirc;t !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16194?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 07:37:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6566cf50-28cf-4851-ad33-3d0aa7fa49ae</guid><dc:creator>Damien Pochon</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;&lt;p&gt;Thanks for your reply. Interesting approach. I&amp;#39;ve just realised that in addition to the calculated &lt;em&gt;date&lt;/em&gt; field we created, we might as well add an &amp;quot;&lt;em&gt;age&lt;/em&gt;&amp;quot; field in days with is much easier to filter on!&lt;/p&gt;&lt;p&gt;It&amp;#39;s a pity, though, that date manipulation is insufficient in stock sugar at the moment...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16195?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 22:54:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d50d0387-b754-4857-bb8d-f91cc06562b9</guid><dc:creator>C&amp;#233;dric Mourizard</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://sugarclub.sugarcrm.com/members/damien.pochon_4000_its4u.lu"&gt;Damien Pochon&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You can follow the KB about &amp;quot;&lt;a href="http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/User_Interface/Fields/Creating_Custom_Fields/" rel="nofollow" target="_blank"&gt;how to create a new type of field&lt;/a&gt;&amp;quot; to extend the Date field and add your new operator in the sugar widget. For the second step, to solve the report case, you can deal with that with a logic hook &amp;quot;after_ui_frame&amp;quot; which use SUGAR.util.doWhen to add the operator in the filter_defs['date'] = filter_defs['date'].concat(additionnalFilters) when it is define.&lt;/p&gt;&lt;p&gt;That&amp;#39;s the &amp;quot;main&amp;quot; idea :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16193?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 20:31:46 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:48c804b7-02ac-46af-8e4d-abe2ce937a1c</guid><dc:creator>Patrick McQueen</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/damien.pochon_4000_its4u.lu"&gt;Damien Pochon&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;This is not available in stock Sugar, as you have observed.&lt;/p&gt;&lt;p&gt;My first thought on how I might address this would be to create a separate field that is updated&amp;nbsp;regularly by a custom scheduler. This field would indicate a&amp;nbsp;period of time&amp;nbsp;corresponding to&amp;nbsp;the reference date. I would then report on that field&amp;#39;s value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16192?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 16:04:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bd37b502-b504-42f0-8f85-7eeeda4f6564</guid><dc:creator>Damien Pochon</dc:creator><description>&lt;p&gt;Hi Prashant,&lt;/p&gt;&lt;p&gt;Thanks for your reply! Our customer&amp;#39;s on Sugar Pro 7.9.x so no ProcessAuthor. We&amp;#39;ve captured the &amp;quot;last interaction date&amp;quot; with a logic hook, but our issue is to get the records for which this date is older than x days.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I can filter &amp;quot;older than date dd/mm/yyyy&amp;quot;, on &amp;quot;this month&amp;quot;, &amp;quot;this year&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;But not &amp;quot;older than this month&amp;quot;, or &amp;quot;older than this week&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ie the &amp;quot;reference date&amp;quot; cannot be relative AFAIK and &lt;em&gt;this&lt;/em&gt; is what I am looking for &lt;span class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding an "older than x days" filter</title><link>https://sugarclub.sugarcrm.com/thread/16191?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 15:33:18 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0134d739-214c-43a4-b5c4-90d7a38fd5c6</guid><dc:creator>Prashant Patel</dc:creator><description>&lt;p&gt;Hello Demien,&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Straight forward and simple way&lt;/strong&gt; : You can do filter based on Date Create or Date Modified for all the modules by default.&lt;/p&gt;&lt;p&gt;Now if you want to tract any perticular event happen and when it was happen and then wants to do filering on that . Then you need to capture the date when the event happen.&lt;br /&gt;Like , whenever the Opportunity is set to close won we will capture the date and save into additional field . And from that additional field you can perform search . And this will be date field so it will have all the necessary filter that you are looking for ( last X days or so.) . Also it will work for reports module .&lt;/p&gt;&lt;p&gt;Here is one example link that how you can capture the date event on any action using SugarCRM Advanced Workflow.&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.sugarcrm.com/Knowledge_Base/Advanced_Workflow/Capturing_the_Sales_Stage_When_an_Opportunity_Closes/" rel="nofollow" target="_blank"&gt;http://support.sugarcrm.com/Knowledge_Base/Advanced_Workflow/Capturing_the_Sales_Stage_When_an_Opportunity_Closes/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you are using the CE edition of sugarcrm then you need to write logic hook to achieve this.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;br /&gt;Prashant&lt;br /&gt;Email : &lt;a href="mailto:prashant13290@gmail.com"&gt;prashant13290@gmail.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;WhatsAPP : +91 9016739026&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>