Activity Forums Salesforce® Discussions How can I display the recent items object through Salesforce apex class?

  • Abhinav

    Member
    August 8, 2016 at 1:52 pm

    Hi Pranav,

    You can use the following query :- SELECT Id, Name FROM RecentlyViewed WHERE Type IN ('Account', 'Contact')ORDER BY LastViewedDate DESC

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos