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
Malik Butler 5Malik Butler 5 

Activity Feed

I created an apex class that shows related object activity on an account page. I am not able to get chatter feed though. I also am able to get one object but I'd like to add opportunities and work orders. Any ideas on what I should do?
AnudeepAnudeep (Salesforce Developers) 
Hi Malik, 

Are you using the chatter: feed component or doing it through the apex
public void postFeed(){
FeedItem post = new FeedItem();
post.ParentId = userID;
post.Body = body;
insert post;

What you are looking for is an idea today