This code will give me all of the posts associated with that Contact but how can I also see all of the posts on related records (opportunities, leads, applications, cases, activities, etc) as well.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
You can also use the
ConnectApi.ChatterFeeds.getFeedElementsFromFeed() method to get feeds to display in a Visualforce page. The method is overloaded so choose a signature that works with record feeds.
See "Get Feed Elements from a Feed" on this page: