+ Start a Discussion

Find all objects that are tracked

I have used the call Schema.getGlobalDescribe().Values(); to find all of the objects in the system.

Is it possible to find all objects that have feed tracking enabled on them?  I'm basically trying to find all objects which can be followed.
Best Answer chosen by ScottB3
Raj VakatiRaj Vakati
You have isFeedEnabled enabled method on the  DescribeSObjectResult  and use it 


Sample code
Set<String> sobjectWithFeed= new Set<String>() ;
for ( Schema.SObjectType o : Schema.getGlobalDescribe().values() )
    Schema.DescribeSObjectResult objResult = o.getDescribe();

 system.debug( 'sobjectWithFeed: ' + sobjectWithFeed );