+ Start a Discussion

Record Feed name for custom objects

I have custom objects in my application.

My Dev ORG is chatter enabled and I have enabled Feed track changes on fields of these objects. 

According to Chatter cheat sheet, a custom object Foo__c will have a record feed named Foo_Feed__c.


For the following code (from Chatter Recipe)

public List<HlistItem_Feed__c> getRecipeNineFeedTrackedChanges()
        List<HlistItem_Feed__c> af = [Select id, Parent.Name,
            (SELECT Id, FieldName, NewValue,OldValue FROM FeedTrackedChanges) 
            from  HlistItem_Feed__c LIMIT 100];
        for(HlistItem_Feed__c f : af)
            for(Integer i = 0; i < f.feedTrackedChanges.size(); i++)
                    'Change on '+f.feedTrackedChanges.get(i).fieldName+
                    ' is '+f.feedTrackedChanges.get(i).NewValue+
                    ' (old Value)'+ f.feedTrackedChanges.get(i).OldValue);
        return af;


public List<MyCustom_Feed__c> getRecipeNineFeedTrackedChanges()    {        

           List<MyCustom_Feed__c> af = [Select id, Parent.Name,

                                                                      (SELECT Id, FieldName, NewValue,OldValue FROM FeedTrackedChanges)

                                                                     from  MyCustom_Feed__c LIMIT 100];    




I get the following compile error: 

Error: Compile Error: sObject type 'MyCustom_Feed__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. 


Any ideas on what is wrong here? 


This is an error in the cheat sheet.  The feed object for a custom object Foo__c is Foo__Feed  NOT Foo_Feed__c.