Is this possible?
SELECT Name FROM RecentlyViewed WHERE Type = 'foo' and Type.RecordType.Name = 'bar'
If yes, how should I go about it?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Yes, it is possible.
SELECT Id, Name, RecordTypeId,RecordType.Name FROM RecentlyViewed WHERE Type IN ('Account', 'Contact') ORDER BY LastViewedDate DESC
If the Type of object has recordtype then recordtypeId will be displayed otherwise it will be null.