Activity Forums Salesforce® Discussions How can I get Recent Items object Ids in SOQL?

  • Tanu

    Member
    August 30, 2016 at 3:11 pm

    Hello,

    There is a new object available in Summer '13 called RecentlyViewed that you can use in SOQL to get a user's recently viewed records.

    SELECT Id, Name
    FROM RecentlyViewed
    WHERE Type IN ('Account', 'Contact')
    ORDER BY LastViewedDate DESC

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos