function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Puller Mayfield 5Puller Mayfield 5 

<chatter:feed entityID/> troubleshooting

New to Visualforce and trying to add a Chatter Feed to this VF page I got from a recipe book. Not sure what to put for entityId (line 2). Thanks for any help.
<apex:page standardController="Account" >
  <chatter:feed entityId="?"/>

    <apex:tabPanel switchType="client" selectedTab="detailTab">
        <apex:tab id="detailTab" label="Details" >
            <apex:detail relatedList="false"/>
        </apex:tab>
        <apex:tab id="contactsTab" label="Contacts" >
            <apex:relatedList subject="{!account}" list="Contacts"/>
        </apex:tab>
        <apex:tab id="casesTab" label="Cases" >
            <apex:relatedList subject="{!account}" list="Cases"/>
        </apex:tab>
        <apex:tab id="opportunitiesTab" label="Opportunities" >
            <apex:relatedList subject="{!account}" list="Opportunities"/>
        </apex:tab>
        <apex:tab id="openactivitiesTab" label="Open Activities" >
            <apex:relatedList subject="{!account}" list="openActivities"/>
        </apex:tab>
        
    </apex:tabPanel>

</apex:page>

 
Best Answer chosen by Puller Mayfield 5
Andy BoettcherAndy Boettcher
The entityId is the recordId of the record you wish to have the chatter:feed display from.  In your VF page there, try putting {!Account.Id}.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_chatter_feed.htm

 

All Answers

Andy BoettcherAndy Boettcher
The entityId is the recordId of the record you wish to have the chatter:feed display from.  In your VF page there, try putting {!Account.Id}.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_chatter_feed.htm

 
This was selected as the best answer
Puller Mayfield 5Puller Mayfield 5
Thank you, Andy.