Is there a way to determine if an object supports list view?
I've developed a VF page which shows a list of Objects and based on Object selection it shows list views of that selected object. For some objects like EmailTemplate, Organization etc it throwing system exception "List Controllers not supported for ...."
I'm using below code to fetch list views of Selected Object. However, this code is failing for objects like EmailTemplate, Organization etc
Hence, my question, is there a way to determine if an object supports list view?
String baseQuery = 'Select ID FROM ' + SelectObject + ' Limit 1'; objSetController = new ApexPages.StandardSetController(Database.getQueryLocator(baseQuery)); List < SelectOption > options = objSetController.getListViewOptions();