Is this possible?

SELECT Name FROM RecentlyViewed WHERE Type = 'foo' and Type.RecordType.Name = 'bar'

If yes, how should I go about it?


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.

Refer RecentlyViewed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.