You need to sign in to do that
Don't have an account?

Visualforce: Display chatter posts as a related list
Looking for a way to compactly display all chatter posts on a record in the standard view. Perhaps a table with a couple of identifying fields and the body of the posts. Was thinking of a vf page embedded in the layout using apex:relatedlist, but in that case, how would I reference the chatter object if possible?
Perhaps a vf page, embedded in the layout, but some other way to display chatter post records in a table? Any code snippets, articles, examples, would be appreciated. If it looked like any other related list, perhaps with some scrolling in teh case of many posts, that would be great.
Perhaps a vf page, embedded in the layout, but some other way to display chatter post records in a table? Any code snippets, articles, examples, would be appreciated. If it looked like any other related list, perhaps with some scrolling in teh case of many posts, that would be great.
Greetings to you!
You can include the chatter feed for the particular record using the chatter:feed visualforce tag. In the entity Id attribute, you need to pass the id of the record.
Please refer to the below links which might help you further with the above requirement.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_chatter_feed.htm
https://salesforce.stackexchange.com/questions/71465/visualforce-page-to-show-all-chatter-posts-on-contact-and-all-related-records
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
...or other table-like display.