function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC_coderSFDC_coder 

Recently Viewed list filter for custom objects

Why salesforce does not show Recently Viewed List filter for Custom objects in Salesforce classic?  
Is there anyway we can create list filter for Recently View records. I cannot find LastViewedDate while creating new View.
Please suggest on this.
Raj VakatiRaj Vakati
You can not able to do it with Point and click.

But you can use the Visuafroce page to do it which is more development work  


Use this query to retrieve data that was either viewed or referenced, 
 
SELECT Id, Name
FROM RecentlyViewed 
WHERE Type IN ('Account', 'Contact', 'Plan__c')
ORDER BY LastViewedDate DESC


 
SFDC_coderSFDC_coder
ya. but in this case, i have to develop entire Custom object tab itself including,
1) Show list of views in drop down list
2) Section to show Recently Viewed.

Please let me know if you have any example for this. 
Raj VakatiRaj Vakati
Yes ...  You need to override the tab. That is the only way